I need to create a new column in a table in a MS Access database. I'm usnig the ADOX object to open the file and have no problems creating a new integer-type column but I can't figure out how to make it AutoNumber.
/Haug
Set Col = New ADOX.Column
With Col
Set .ParentCatalog = cat
.Name = "AutoNr"
.Type = adInteger
.Properties("AutoIncrement" = True
tbl.Columns.Append Col
End With
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.