Hi All,
I am using a MS-Access with VB6.0.
I wanted to open simultaneous connections on a single MDB file. how
can i achive that?
I am using the following code right now and get error if i try to open
a connection which is already open by another module.
''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''
Set myConnection = New ADODB.Connectio n
Set myRecordset = New ADODB.Recordset
On Error GoTo perror
'open the database connection
myConnection.Op en "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ="
& "c:\rdso\cadat. mdb"
sqlStatement = "Select * from " & TestName
' get the record set and enter values
With myRecordset
.CursorType = 1
.LockType = 3
.Open sqlStatement, myConnection
End With
''''''''''''''' ''''''''''''''' '''''''''''''''
Please help
Ruchit Garg
I am using a MS-Access with VB6.0.
I wanted to open simultaneous connections on a single MDB file. how
can i achive that?
I am using the following code right now and get error if i try to open
a connection which is already open by another module.
''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''
Set myConnection = New ADODB.Connectio n
Set myRecordset = New ADODB.Recordset
On Error GoTo perror
'open the database connection
myConnection.Op en "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ="
& "c:\rdso\cadat. mdb"
sqlStatement = "Select * from " & TestName
' get the record set and enter values
With myRecordset
.CursorType = 1
.LockType = 3
.Open sqlStatement, myConnection
End With
''''''''''''''' ''''''''''''''' '''''''''''''''
Please help
Ruchit Garg
Comment