Run-time error: -2147467259 (80004005)
The database has been placed in a state by user 'xxx' on machine 'yyy' that prevents it from being opened or locked.
i'm so tired of this.
using Office 2k sr1, straight off the cd. I even tried to install SR-1/1a, but it says it already exists.
I found MS technote Q248967 that talks about this, but I'm not using subforms on the problem forms.
I also happen to have installed Visual Studio 6 if it matters.
The following code is typical in my application. I do this several times in the app.
It intermittantly gives me the error on the line with the
">>>".
*******************************************
Dim sql1 as string
Dim MyCnn as New ADODB.Connection
Dim MyRst as New ADODB.RecordSet
With
.Provider = "Microsoft.Jet.OLEDB.4.0"
>>> .Open Forms!MainMenu!MyDataPath & "\MyFile.mdb"
End With
sql1 = "SELECT * FROM SOMETABLE"
With MyRst
Set .ActiveConnection = MyCnn
.CursorLocation = adUseClient
.CursorType = adOpenStatic
.LockType = adLockOptimistic
.Open sql1
End With
'some code here
Set MyRst = Nothing
MyCnn.Close
*****************************************
The database has been placed in a state by user 'xxx' on machine 'yyy' that prevents it from being opened or locked.
i'm so tired of this.
using Office 2k sr1, straight off the cd. I even tried to install SR-1/1a, but it says it already exists.
I found MS technote Q248967 that talks about this, but I'm not using subforms on the problem forms.
I also happen to have installed Visual Studio 6 if it matters.
The following code is typical in my application. I do this several times in the app.
It intermittantly gives me the error on the line with the
">>>".
*******************************************
Dim sql1 as string
Dim MyCnn as New ADODB.Connection
Dim MyRst as New ADODB.RecordSet
With
.Provider = "Microsoft.Jet.OLEDB.4.0"
>>> .Open Forms!MainMenu!MyDataPath & "\MyFile.mdb"
End With
sql1 = "SELECT * FROM SOMETABLE"
With MyRst
Set .ActiveConnection = MyCnn
.CursorLocation = adUseClient
.CursorType = adOpenStatic
.LockType = adLockOptimistic
.Open sql1
End With
'some code here
Set MyRst = Nothing
MyCnn.Close
*****************************************