BlueJay924
Well-known member
- Joined
- May 6, 2003
- Messages
- 46
i need some help trying to connect to an access database. For a while now Ive been using vb.net, and ive had no problem connecting to a database. The reason ive had no problem is because i havent been using a password. its when i protect the database with a password is when i cant connect. What ive been doing so far is opening the database with open-exclusive, and from there i set the password. I assumed that this code would work:
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\databaseToOpen.mdb;password = thePassword")
cn.Open()
but so far no luck. Is it even possible with only a password? If so, what am i doing wrong.
Evenutally id like to be able to add new users/passwords, but still having problems. Any kind of tutorial for this would be really helpful.
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\databaseToOpen.mdb;password = thePassword")
cn.Open()
but so far no luck. Is it even possible with only a password? If so, what am i doing wrong.
Evenutally id like to be able to add new users/passwords, but still having problems. Any kind of tutorial for this would be really helpful.