Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to Access 2000

Status
Not open for further replies.

Dexx

Programmer
Nov 2, 2001
2
0
0
US
I'm trying to connect to an Access 2000 database using the following connection string:

strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\Databases\Northwind.mdb;"

but I keep having the following error message:

Microsoft JET Database Engine (0x80004005)
The Microsoft Jet database engine cannot open the file 'C:\Northwind.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

I closed the database but the error message never seems to go away. Frustrating! I have tried other connections including DSN connections and the standard connection string below:

strConnection.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\Databases\Northwind.mdb"

but none seems to work

Has anyone any suggestions? Has anybody encountered a similar error message before?

Thanks

Lee
Arlington, VA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top