A
Allen_N
I am trying to delete a table prior to rebuilding it in code. Thsi works fine
the 1st time I run the app after loading the database:
DoCmd.DeleteObject acTable, "Commonality"
On subsequent runs, however, I get Run-time error '3211': "The database
engine could not lock table 'Commonality' because it is already in use by
another person or process." I then have to reset the app and then manually
delete the table in Access. I obviously can't release the app with this
happening, so how can I avoid this error?
Thanks!
the 1st time I run the app after loading the database:
DoCmd.DeleteObject acTable, "Commonality"
On subsequent runs, however, I get Run-time error '3211': "The database
engine could not lock table 'Commonality' because it is already in use by
another person or process." I then have to reset the app and then manually
delete the table in Access. I obviously can't release the app with this
happening, so how can I avoid this error?
Thanks!