I am trying to delete a temporary table but get an error when executing DoCmd.DeleteObject actable, "TempServicetbl". The error is: "Run-time error '3211':: The database engine could not lock the table 'TempServiceTbl' because it is already in use by another person or process."
Since I am the only person using it, it must be another process but the only application using it is the one I'm trying to exit. I want to "clean up" before exiting so that the next time the application runs it will create a 'fresh' temporary table. How can I release the lock on this table so it can be deleted? Does it really need to be deleted or will the next iteration over-write the temp table with a new one? I think it probably will, but is that the proper thing to do?