Is there an easy function to determine whether a table exists?
I want to delete a table with the line in an OnClick property:
DoCmd.DeleteObject acTable, “Test Procedures”
That works fine, but there are certain circumstances (i.e. program blew up later in the procedure) where this temporary table has already been deleted. I keep going back and commenting out the line above after debugging the problem that caused the blowup. Then I have to remember to un-comment the line.
I have decided to delete the temp table at the end of the procedure, not at the beginning, but I will still have to comment it out during the debug process.
I thought there was something like:
If TableExist (“Test Procedures”) Then
and I’m pretty sure I’ve used it before, but it’s not working here. Are my references set incorrectly?
Any ideas?
Kathi