ACC1x: "Can't Update; Currently Locked" Attaching FoxPro TableID: Q109709
|
You receive the error message "Couldn't update; currently locked" when you attach or view a previously attached FoxPro table that another user has open and is running an append or update operation on.
This error occurs because FoxPro temporarily locks the table and indexes when a user is performing an append or update operation. The locks are released as soon as the operation is complete.
Wait for the append or update operation to be completed, and then attach or view the FoxPro table again.
This problem no longer occurs in Microsoft Access version 2.0.
Sub test ()
Dim db As Database
Dim ds As Dynaset
Set db = CurrentDB()
'Query1 is based on the attached FoxPro table and has no criteria.
Set ds = db.CreateDynaset("Query1")
ds.MoveFirst
While Not ds.eof
ds.Edit
ds!Author = "FOX"
ds.Update
ds.MoveNext
Debug.Print ".";
DoEvents
Wend
ds.Close
db.Close
End Sub
Keywords : kb3rdparty IsmXbase
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 30, 1999