G
Guest
Hi,
I have VBA code which deletes a table called "Paid Daily". However, in
certain cases, the "Paid Daily" table may not exisit. In order not to
receive an error message, I was thinking of adding an If..Then... statement
to only delete the table if it exists. The problem is that I can seem to get
the code to work.
Here's the code:
If IsEmpty("Table![Paid Daily]") = False Then
DoCmd.DeleteObject acTable = acDefault, "Paid Daily"
Else
<continue with procedure>
Can anyone tell what I'm doing wrong?
Much Appreciated!
Manuel
I have VBA code which deletes a table called "Paid Daily". However, in
certain cases, the "Paid Daily" table may not exisit. In order not to
receive an error message, I was thinking of adding an If..Then... statement
to only delete the table if it exists. The problem is that I can seem to get
the code to work.
Here's the code:
If IsEmpty("Table![Paid Daily]") = False Then
DoCmd.DeleteObject acTable = acDefault, "Paid Daily"
Else
<continue with procedure>
Can anyone tell what I'm doing wrong?
Much Appreciated!
Manuel