Hi -
Is there a relatively simple way to delete a table if it exists? Basically, in my database I am importing temporary files which get appended to static continuous tables each month and I would like Access to identify if there is one of these temp tables delete it, otherwise do nothing and continue with the rest of the script. Is there a simple way to do this? Right now I just am using something like this: DoCmd.DeleteObject acTable, "tblLHFItemp"
But if that temp table does not exist for whatever reason I get an error. In the end if the table doesn't exist I just want Access to skip over the error.
Thank you!
David
Is there a relatively simple way to delete a table if it exists? Basically, in my database I am importing temporary files which get appended to static continuous tables each month and I would like Access to identify if there is one of these temp tables delete it, otherwise do nothing and continue with the rest of the script. Is there a simple way to do this? Right now I just am using something like this: DoCmd.DeleteObject acTable, "tblLHFItemp"
But if that temp table does not exist for whatever reason I get an error. In the end if the table doesn't exist I just want Access to skip over the error.
Thank you!
David