Re: Accessing Access 2007 Databases
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Tue, 5 Jun 2007 13:21:19 -0400
Thatch wrote:
I'm using the following code to open an Access 2007 database:There is a new provider you need to use for Access 2007 ... off to
Dim rstRecords as new ADODB.Recordset
Dim strConnectionString as string
' Set the connection string
strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Databases\Access2007.accdb;Persist Security Info=False;"
' Connect to the database
rstRecords.let_ActiveConnection(strConnectionString)
And I get an "Unrecognized Database Format" error when I execute the
.let_ActiveConnection.
This works fine on an Access 2000 database but I'm trying to upgrade
to Access 2007 and I can't get Jet 4.0 to recognize the new database.
Any hints on what string I should use to make this work????
T
connectionstrings.com to get its name ... Here you go:
http://www.connectionstrings.com/?carrier=access2007
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Prev by Date: Re: how should varChar fields be described to ADO?
- Next by Date: Re: Accessing Access 2007 Databases
- Previous by thread: how should varChar fields be described to ADO?
- Next by thread: Re: Accessing Access 2007 Databases
- Index(es):
Relevant Pages
|
|