B
BobV
Group:
I can't figure out why the ALTER COLUMN statement does not set the default
value to 0. Here is my code:
BackDb.Execute "ALTER TABLE [Table1] ADD COLUMN [ItemID] Number;"
BackDb.Execute "ALTER TABLE [Table1] ALTER COLUMN [ItemID] SET DEFAULT
""0"";"
According to page 179 of the "Access 2002 Desktop Developer's Handbook" by
Paul Litwin, Ken Getz and Mike Gunderloy, this should set the default value
to 0 for the column named ItemID. I first add the column named ItemID, then
I want to set the default to 0.
Any suggestions?
Thanks,
BobV
I can't figure out why the ALTER COLUMN statement does not set the default
value to 0. Here is my code:
BackDb.Execute "ALTER TABLE [Table1] ADD COLUMN [ItemID] Number;"
BackDb.Execute "ALTER TABLE [Table1] ALTER COLUMN [ItemID] SET DEFAULT
""0"";"
According to page 179 of the "Access 2002 Desktop Developer's Handbook" by
Paul Litwin, Ken Getz and Mike Gunderloy, this should set the default value
to 0 for the column named ItemID. I first add the column named ItemID, then
I want to set the default to 0.
Any suggestions?
Thanks,
BobV