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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Db w/ pw to excel

Status
Not open for further replies.

timely2

MIS
Oct 11, 2005
17
US
I am able to get code work if a user and password are defined on the access db.

pw = ty
ud = "Admin"
' Path to Transfers.mdb
MyConn = "d:\personal\tely\pickeraccuracy.mdb"
Set cnn = New ADODB.Connection
With cnn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Open MyConn, ud, pw
End With
Set rst = New ADODB.Recordset
rst.CursorLocation = adUseServer

But I can not get it to work if a password is used for everything and not difined to a specific usergroup. When I try to use the same code as above I get:

"Cannot start your application. The workgroup information file is missing or opened exclusively by another user."

both access and excel are the same version of the suite.

Any ideas?

Thanks
Tim
 
You may try this kind of connection string:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\personal\tely\pickeraccuracy.mdb;Jet OLEDB:System Database=\path\to\file.mdw;"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top