B
BobV
Group:
I am using Access 2002. I want to add a column to a table (MasterData) in
the backend database and then specify that it be an integer with a default
value of zero. I am using the following statement to add a column to the
MasterData table, but I would like to further specify that the column be an
integer with a default value of zero. Can someone suggest the proper syntax
for a VBA statement to do what I want to do? I think I need to use ALTER
COLUMN but I don't know the proper syntax. Any sample code would be greatly
appreciated.
BackDb.Execute "ALTER TABLE [MasterData] ADD COLUMN [CompanyOpen] Number;"
Thanks,
Bob V
I am using Access 2002. I want to add a column to a table (MasterData) in
the backend database and then specify that it be an integer with a default
value of zero. I am using the following statement to add a column to the
MasterData table, but I would like to further specify that the column be an
integer with a default value of zero. Can someone suggest the proper syntax
for a VBA statement to do what I want to do? I think I need to use ALTER
COLUMN but I don't know the proper syntax. Any sample code would be greatly
appreciated.
BackDb.Execute "ALTER TABLE [MasterData] ADD COLUMN [CompanyOpen] Number;"
Thanks,
Bob V