Hi all,
I'm creating my Access tables using VBA and SQL.
I then want set each fields columnwidth property using:
However I get a "property not found error". It appears the columnwidth property is missing from the item tree.
However if opening the table in Access, manually adjust the column width by dragging the column bar then I can set the columnwidth in VBA using the string above??
Any ideas how to set/create the columnwidth property in VBA???
Thanks,
Mark.
I'm creating my Access tables using VBA and SQL.
Code:
strSQL = "CREATE TABLE [<tblname>] (<fieldname> AUTOINCREMENT)
Code:
docmd.runsql strSQL
Code:
db.TableDefs(<tblname>).Fields(<fldname>).Properties("ColumnWidth") = <width in twips>
However if opening the table in Access, manually adjust the column width by dragging the column bar then I can set the columnwidth in VBA using the string above??
Any ideas how to set/create the columnwidth property in VBA???
Thanks,
Mark.
Comment