ado answer to TableDefs

  • Thread starter Thread starter Tom Loach
  • Start date Start date
T

Tom Loach

Can anyone tell me what the code is to replicate the Access TableDefs
collection?
For instance I can code the following to get table data:

Dim db as DAO.database
Dim tdf as DAO.TableDef

set db = currentDb()
For Each tdf In db.TableDefs
Debug.Print tdf.Name
Next tdf

What I want to do is to loop through an Access database and see if a
specific table exists and if not create the table, which brings me to my
next question. Can I use DDL to create the table?

Thanks,
Tom
 
Back
Top