|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
ADO using MS Access DB
Guys, i got a problem.
When i tired to access a ms access db, i'm able to connect it without password in ms access. However, when i add in a password in ms access, i will not be able to connect it. Below is the code that is w/o password: Private Sub Command1_Click() Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=TestDb.mdb;Password=a" Adodc1.CommandType = adCmdTable Adodc1.RecordSource = "Name" Adodc1.Refresh MsgBox Adodc1.Recordset.Fields(1) End Sub Can any1 pls help me |
|
#2
|
|||
|
|||
|
i'm assuming you are setting a database password. change the connection string:
Code:
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=TestDb.mdb; " & _
"Jet OLEDB:Database Password = ThePassword;"
__________________
Programmer's Corner |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > ADO using MS Access DB |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|