S
Souris
I have Excel application to access MS Access database on open work book using
following code
Dim MyPath As String
Dim MyConnection As String
Dim MySQL As String
MyPath = "D:\MY DB\MYDB.mdb"
MyConnection = "Provider=Microsoft.Jet.OLEDB.4.0;"
MyConnection = MyConnection & "Data Source=" & MyPath & ";"
MySQL = "SELECT COUNT(*) FROM tblMyTable WHERE USER_ID = " & """" & 1111 &
""""
Set MyDatabase = CreateObject("adodb.recordset")
MyDatabase.Open MySQL, MyConnection, 0, 1, 1
It seems the database is opened by some one.
Are there any way to check the database is used by some one and opens as
another instance.
Your inforamtion is great appreciated,
following code
Dim MyPath As String
Dim MyConnection As String
Dim MySQL As String
MyPath = "D:\MY DB\MYDB.mdb"
MyConnection = "Provider=Microsoft.Jet.OLEDB.4.0;"
MyConnection = MyConnection & "Data Source=" & MyPath & ";"
MySQL = "SELECT COUNT(*) FROM tblMyTable WHERE USER_ID = " & """" & 1111 &
""""
Set MyDatabase = CreateObject("adodb.recordset")
MyDatabase.Open MySQL, MyConnection, 0, 1, 1
It seems the database is opened by some one.
Are there any way to check the database is used by some one and opens as
another instance.
Your inforamtion is great appreciated,