I have the following code :
Private Sub Command66_Click()
DoCmd.SetWarnings False
DoCmd.DeleteObject acTable, "Table1"
DoCmd.DeleteObject acTable, "Table2"
DoCmd.DeleteObject acTable, "Table3"
DoCmd.SetWarnings True
End Sub
The problem is that if "Table1" is not present,I receive an VBA/debug Error. Can I add some condition that if the script doesn't find "Table1" it should go further and delete the other 2 tables without returning any error message?