Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reset autonumber ?

Status
Not open for further replies.

ooops

MIS
Dec 21, 2000
91
US
This is what I have but I keep getting runtiem error "3211"
The database engine could not lock table 'myTable' because it's already in use by another person or process.

With DoCmd
.SetWarnings False
.RunSQL "Delete * from myTable"
.SetWarnings True

.Rename "myTable_old", acTable, "myTable"
.CopyObject , "myTable", acTable, "myTable_old"
.DeleteObject acTable, "myTable_old"
End With
 
i have this problem, 3211, i looked all my code and nothin seems to lock the table,

what is it the possible cause for this 3211 error code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top