Newly created table can not be seen until I get out of Access then back in.
Table I have deleted manually is still seen from my Code.
I have scripted an import of a "FileName.exe_MMDDYY.csv" table but would like to check if a table name exists that I create within the function. If the table exists I would like to increament the latest version suffix by 1 and check for that table until I have a unique table name. i.e. If TableName_1 exists create TableName_2.
I loop through the table names until I get an error on - Set tdf = db.TableDefs(tblName). This means the table does not exist and I can go on. Else, Increament the suffix by 1 and check again until the table is not found. The problem is that Access does not see the table I last created and the records are appended to that table. When debugging I can see the table in the Access Object List but the code does not recognize.