create dao table - closed
Code does work as I submitted it. vb5prgrmr is correct about where to look (main access DATABASE window, tables section).
Problem is that new table did not show there until I reopened Access the next time. Neatly confusing!
Thank you. Case closed.
User Profile
Collapse
-
Access - create table DAO - but table not found
In access .mdb I want to create a new table with 5 fields.
Code is like:
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Dim fld As DAO.Field
Set db = CurrentDb()
Set tdf = db.CreateTableD ef("t_comps2")
With tdf
Debug.Print "Count of fields is: " & tdf.Fields.Coun t
' create the fields =========
Set fld...
No activity results to display
Show More
Leave a comment: