Hi Guys
I'm trying to use DDL to add a DATE field as above with NOW() as the default value..
I am using the same syntax pretty much (Altering instead of Creating a table), but its not working..
The error I get is:
err.number = 3293
err.description = Syntax error in ALTER TABLE statement.
Here is the code.. Any ideas ?
I'm trying to use DDL to add a DATE field as above with NOW() as the default value..
I am using the same syntax pretty much (Altering instead of Creating a table), but its not working..
The error I get is:
err.number = 3293
err.description = Syntax error in ALTER TABLE statement.
Here is the code.. Any ideas ?
Code:
CurrentDb.Execute "ALTER TABLE MyTable ADD COLUMN RecordCreatedDate DATE DEFAULT NOW()"