Duane Hookom said:
The easiest way is to open the database window and click on the tables tab.
If you had other requirements, you should probably provide them. We don't
know if you want to check with sql or code or?
Wow, I thought *I* was tough sometimes!
For the OP:
dim db as database, td as tabledef
set db = currentdb()
on error resume next
set td = db.tabledefs("MyTable")
if err.number <> 0 then set td = nothing
on error goto 0
if td is nothing then
' table did not exist.
else
' table exists, and its properties are in td.
...
set td = nothing
endif
set db = nothing
To check in some other database, use:
set db = dbengine.opendatabase ("path to other database")
and add as the second-last line:
db.close
HTH,
TC