Sometimes an ounce of prevention is worth a pound of cure. It's generally accepted that repeatedly deleting and recreating a table is not a good approach. Better to just append and update. If you had to flush all from that table as part of the process, then it's not much better than recreating the table in terms of it being locked - except some also think that repeatedly recreating a table can promote db corruption.
One thing you can do is try to create a locked recordset on the table with the dbDenyRead argument. If it errors, trap the error and present your custom message. Not sure if you should also specify dbDenyWrite as well. Wouldn't hurt I guess.
Last edited by Micron; 03-18-2021 at 03:29 PM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.