"The database has been placed in a state by an unknown user that prevents it from being opened or locked."
The above is the error that I frequently get when some script of mine runs that creates ADO connections. Apparently, the reason is that I'm creating the connection implicitly (as opposed to explicitly)...too bad I don't know what the difference is. The code snippet is as follows:
'implicit connection w/ recordset (I think)
Dim db_00, rs_00
Set db_00 = CreateObject("ADODB.Connection"
db_00.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\Program Files\Access Pages\GAPS_db01\GAPS_db01.mdb" & ";UID=;PWD="
Set rs_00=db_00.execute("SELECT * FROM recordsCurrentYear"
"
"
"
rs_00.Close
db_00.Close
Any help is greatly appreciated. Thanks.
The above is the error that I frequently get when some script of mine runs that creates ADO connections. Apparently, the reason is that I'm creating the connection implicitly (as opposed to explicitly)...too bad I don't know what the difference is. The code snippet is as follows:
'implicit connection w/ recordset (I think)
Dim db_00, rs_00
Set db_00 = CreateObject("ADODB.Connection"
db_00.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\Program Files\Access Pages\GAPS_db01\GAPS_db01.mdb" & ";UID=;PWD="
Set rs_00=db_00.execute("SELECT * FROM recordsCurrentYear"
"
"
"
rs_00.Close
db_00.Close
Any help is greatly appreciated. Thanks.