BrettM
just a pert, "ex" to come
- Local time
- Tomorrow, 02:29
- Joined
- Apr 30, 2008
- Messages
- 134
I have a little backup utility that works perfectly if run all by itself however when called from within the main program it errors during the restore proceedure.
At that time it is trying to delete the existing tables and that is where the error occurs.
error 3211. The database engine could not lock table... it is in use etc.
I am attempting to close the table first - obviously without success.
DoCmd.Close acTable, "tblHours"
DoCmd.DeleteObject acTable, "tblHours"
tblHours is the main table opened by the database. Obviously I am missing something here so I am hoping someone can give me some guidance.
Regards Brett
At that time it is trying to delete the existing tables and that is where the error occurs.
error 3211. The database engine could not lock table... it is in use etc.
I am attempting to close the table first - obviously without success.
DoCmd.Close acTable, "tblHours"
DoCmd.DeleteObject acTable, "tblHours"
tblHours is the main table opened by the database. Obviously I am missing something here so I am hoping someone can give me some guidance.
Regards Brett