I have a customer who would like a customization to an old, Visual Basic 5 application which uses an Access 97 database and Jet 3.5 as the database engine.
The desired customization requires a column to be added to an existing table. The following works fine:
strSQL = "ALTER TABLE Users ADD COLUMN Status BYTE"
pdbDatabase.Execute strSQL
However, I would like to set a default value (i.e. either 0 or 1) for the new column. I have tried the following and a number of variations:
strSQL = "ALTER TABLE Users ADD COLUMN Status BYTE DEFAULT 1"
But they all result in an error stating, "Syntax error in ALTER TABLE statement. (3293)"
In researching this problem, I've seen some information which eludes to the DEFAULT clause not being supported in my antiquated configuration of Access 97 and Jet 3.5.
Can anyone confirm this or point me in the right direction to get this to work?
Thanks for your help.