D
dchillman
I have a table that is created at run time with an autoincrement field.
After populating the table, I want to change the attribute for the
autoincrement field to a fixed field (i.e., I want to remove the
autoincrement).
I've tried the following, but it results in an invalid operation error. I
think it is my syntax, but I can't seem to find an example of how to change
an existing field attribute. Can someone point me in the right direction?
thanks;
dim db as database
dim tdf as tabledef
set db = currentdb
set tdf=currentdb.tabledefs("Table1)
tdf.Fields("Autonumfield").Attributes = dbFixedField
After populating the table, I want to change the attribute for the
autoincrement field to a fixed field (i.e., I want to remove the
autoincrement).
I've tried the following, but it results in an invalid operation error. I
think it is my syntax, but I can't seem to find an example of how to change
an existing field attribute. Can someone point me in the right direction?
thanks;
dim db as database
dim tdf as tabledef
set db = currentdb
set tdf=currentdb.tabledefs("Table1)
tdf.Fields("Autonumfield").Attributes = dbFixedField