I am new to VB and Access
I am running VB 6.0 and Access 2000
Could anyone tell me how I create the connection in VB to my access database.
Would either of the open statements below work
Public conn As ADODB.Connection
Public rs As ADODB.Recordset
Public shape As Integer
Public questionNum As Long
Set conn = New ADODB.Connection
conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=c:\currentwork\mda.mdb;" & _
"Uid=admin;" & _
"Pwd="
conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=" & App.Path & "\mda.mdb;" & _
"Uid=admin;" & _
"Pwd="
If not, could you please provide me with the correct code to create the connection as well as the correct references I need in VB.
This will be a very small app that provides a question and aswer session. It will be installed on 2 or 3 individual machines.
I am running VB 6.0 and Access 2000
Could anyone tell me how I create the connection in VB to my access database.
Would either of the open statements below work
Public conn As ADODB.Connection
Public rs As ADODB.Recordset
Public shape As Integer
Public questionNum As Long
Set conn = New ADODB.Connection
conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=c:\currentwork\mda.mdb;" & _
"Uid=admin;" & _
"Pwd="
conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=" & App.Path & "\mda.mdb;" & _
"Uid=admin;" & _
"Pwd="
If not, could you please provide me with the correct code to create the connection as well as the correct references I need in VB.
This will be a very small app that provides a question and aswer session. It will be installed on 2 or 3 individual machines.