The following line of code was entered in the Immediate Window of Access. I'm following an online tutorial on SQL and VBA coding. When I press enter I get the following error:
Run-time error '3290'
Syntax error in CREATE TABLE statement.
Any clues?
DoCmd.RunSQL "CREATE TABLE tblTest ([StaffID] COUNTER CONSTRAINT ndxStaffID PRIMARY KEY, [FirstName] TEXT(25), [LastName] TEXT(30), [BirthDate] DATETIME);”
Run-time error '3290'
Syntax error in CREATE TABLE statement.
Any clues?
DoCmd.RunSQL "CREATE TABLE tblTest ([StaffID] COUNTER CONSTRAINT ndxStaffID PRIMARY KEY, [FirstName] TEXT(25), [LastName] TEXT(30), [BirthDate] DATETIME);”