BrockLanders
Programmer
Hi, I want to check the current database if a certain table name exists. If so, delete that table, otherwise, run some other code. The problem I'm having is referencing the table name. Below is my code currently:
I need to have some code that says If CurrentDb.TableName = Chain Then,
however, that's not an option I don't believe.
Thanks in advance for any help
Code:
Chain = InputBox("Enter chain number. Do not zero fill")
If CurrentDb.TableDefs(Chain) = Chain Then
DoCmd.DeleteObject acTable, Chain
however, that's not an option I don't believe.
Thanks in advance for any help