P
patwadd
Guest
How do I determine in VBA whether a table exists? I use a temporary table in generating online sales, and need to determine whether it already exists before I try to delete it (if it doesn't exist I get an error). I've tried using an On Error Go To line immediately following the delete command, but the module aborts on the delete command line without getting as far as the error handling line.
Under normal circumstances the temporary table will be deleted on completion of the sale and created new at the start of a sale. However, if the User should just switch his PC off the temporary table will still be there, containing data from the preceding sale. Incidentally, the table HAS to have a name, as separate tables are created for each database user.
Under normal circumstances the temporary table will be deleted on completion of the sale and created new at the start of a sale. However, if the User should just switch his PC off the temporary table will still be there, containing data from the preceding sale. Incidentally, the table HAS to have a name, as separate tables are created for each database user.