I am trying to create a number of tables from within VBA code. I want the tables to have 10 columns, 6 of which are hidden. I also want 2 of the unhidden columns to be combo boxes, populated from queries that I have already set up.
I know how to create a table and append fields to it. What I cannot do is set the required columns to be hidden or get 2 of the fields to be combo boxes.
I have tried using the ColumnHidden property mentioned in the help (Access '97) but to no avail. I used:
but this failed.
As for the combo boxes, I don't really know where to start. I have been adding my fields to the table like:
Any help with any of this, probably the first of many problems, is much appreciated
I know how to create a table and append fields to it. What I cannot do is set the required columns to be hidden or get 2 of the fields to be combo boxes.
I have tried using the ColumnHidden property mentioned in the help (Access '97) but to no avail. I used:
Code:
myField.Properties(ColumnHidden) = True
As for the combo boxes, I don't really know where to start. I have been adding my fields to the table like:
Code:
with myTableDef
.Fields.Append .CreateField("My field", dbText, 50)
end with
Any help with any of this, probably the first of many problems, is much appreciated