Grettings. I hope someone can help me understand what I'm doing wrong!!! I have the following code:
1) tblMainTable is a linked table
2) I want to copy tblMainTable to tblMyTable - both are in MyOwnDB.mdb (can I use CurrentProject instead??)
Public Sub MakeMyTable()
Dim cnnMine As New ADODB.Connection
Dim strMine As String
Dim strMyTable As String
strCreateTable = "SELECT * INTO tblMyTable " _
& " FROM tblMainTable;"
cnnMine.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=c:\MyOwnDB.mdb;"
cnnMine.Execute (strCreateTable)
cnnMine.Close
End Sub
Every time I try to execute this I get the following error: The Microsoft Jet database engine stopped the process becuase you and another user are attempting to change the same data at the same time.
I've tried to understand this, but after 8 hours of this - it's frustrating. I thank you in advance for any assistance.
- Lorentz
1) tblMainTable is a linked table
2) I want to copy tblMainTable to tblMyTable - both are in MyOwnDB.mdb (can I use CurrentProject instead??)
Public Sub MakeMyTable()
Dim cnnMine As New ADODB.Connection
Dim strMine As String
Dim strMyTable As String
strCreateTable = "SELECT * INTO tblMyTable " _
& " FROM tblMainTable;"
cnnMine.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=c:\MyOwnDB.mdb;"
cnnMine.Execute (strCreateTable)
cnnMine.Close
End Sub
Every time I try to execute this I get the following error: The Microsoft Jet database engine stopped the process becuase you and another user are attempting to change the same data at the same time.
I've tried to understand this, but after 8 hours of this - it's frustrating. I thank you in advance for any assistance.
- Lorentz