I\'m creating the table with this command:
CREATE TABLE Comp ( SerialNumber Number Primary Key Not Null, Make Text(12) Not Null, Model Text(24) Not Null, Process
You need to run against a connection and Comp is a reserved word.
ss = "ALTER TABLE [Comp] ADD CONSTRAINT CheckSpeed CHECK (ProcessorSpeed > 0)" CurrentProject.Connection.Execute ss
Info: Constraints
Reserved words in Jet/Access pre 2007 and ACE/Access 2007-