Ok mcsa as promissed, this sample shows how to use ADOX to create the Acc97DB, then using ADO and SQL to create the table.

enjoy

VB Code:
  1. 'Add a reference to Microsoft ADO Ext. X.X For DLL And Security
  2. 'Add a ref for ADO
  3. Option Explicit
  4. Private cat As ADOX.Catalog
  5. Private cnn As New ADODB.Connection
  6.  
  7. Private Sub Command1_Click()
  8.     Dim SQL As String
  9.     Set cat = New ADOX.Catalog
  10.     ' create the db
  11.     cat.Create "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=c:\newDB.mdb"
  12.     Set cat = Nothing
  13.    
  14.     'create table using SQL instead of table def
  15.     SQL = "CREATE TABLE TestTable (ID COUNTER, SetName TEXT(50), SetVal TEXT(255), Description TEXT(255))"
  16.    
  17.     'open the db and create the table using ADO and SQL
  18.     cnn.Open "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=c:\newDB.mdb"
  19.     cnn.Execute SQL
  20.     cnn.Close
  21. End Sub