Guest_imported
New member
- Jan 1, 1970
- 0
I run a procedure on a linked table on a network drive to delete all records and then add new records from a text file. The program works great as long as the data file is in Access 97, When I convert it to Access2000 I get "Could not Update; Currently Locked" error 3218.
Here is the code:
Set dbInput = CurrentDb()
Set rsInput = dbInput.OpenRecordset(strTableName, dbOpenDynaset)
If rsInput.BOF = False Then rsInput.MoveFirst
Do While rsInput.EOF = False
rsInput.Delete
rsInput.MoveNext
Loop
What am I doing Wrong?
Here is the code:
Set dbInput = CurrentDb()
Set rsInput = dbInput.OpenRecordset(strTableName, dbOpenDynaset)
If rsInput.BOF = False Then rsInput.MoveFirst
Do While rsInput.EOF = False
rsInput.Delete
rsInput.MoveNext
Loop
What am I doing Wrong?