While searching the forums, I found a code that allows one to create tables programmatically.
VB Code:
Set db = CreateDatabase("C:\NewDB.MDB", dbLangGeneral, dbVersion40) 'add a table with some fields sql = "CREATE TABLE TestTable (ID COUNTER, SetName TEXT(50), SetVal TEXT(255), Description TEXT(255))" db.Execute sql
This worked great, but I can't get it to work with a database that already exists. How do you get this code to work if the database already exists?
