DEFAULT clause in ALTER TABLE statement resulting in syntax error
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