cpopham Posted April 19, 2005 Posted April 19, 2005 I have a database and if I do not set the password, my connection works fine. When I add a database password, I get an error message "Cannot start your application. The workgroup information file is missing or opened exclusively by another user." Here is my connection string: strCN = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source='" & strDBPath & "';" & _ "User ID=Admin;" & _ "Password=" & strDBPW Now if I take password off of the database and remove the & strDBPW from my connection string it works fine. Any ideas? Thanks, Chester Quote ____________________________________________ http://www.pophamcafe.com I am starting a developers section, more tutorials than anything.
Afraits Posted April 19, 2005 Posted April 19, 2005 Is the password a database level password? If so your connection string is slightly wrong, instead of the UserID & password your need to use Jet OLEDB:Database Password ie strCN = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source='" & strDBPath & "';" & _ "Jet OLEDB:Database Password=" & strDBPW Quote Afraits "The avalanche has started, it is too late for the pebbles to vote"
cpopham Posted April 19, 2005 Author Posted April 19, 2005 That was it. I have not dealt with password protected Access databases until now. Thanks for the help, Chester Quote ____________________________________________ http://www.pophamcafe.com I am starting a developers section, more tutorials than anything.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.