How do I do this? I tried using CreateTableDef() but that didn't seem to work (table wasn't added to my list of tables), although it didn't raise any errors...
Joshua,
You have to add at least one field to the new tabledef and then append the tdf to the database tabledefs.
Code:
Dim tdf As TableDef
Set tdf = CurrentDb.CreateTableDef("myTable")
tdf.Fields.Append tdf.CreateField("myField", dbText, 5)
CurrentDb.TableDefs.Append tdf
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.