I'm trying to create a simple check contraint in access without going into access's table designer.
basically in sql server 2000 I would do this ....
CREATE TABLE tblCHECKtest
(
item_code char(4)
CONSTRAINT CK_tblCHECKtest CHECK (item_code = '0000')
)
how can I do the above in access via a sql command ... it keeps returning 'Syntax error in CONSTRAINT clause'
thanks for any help
basically in sql server 2000 I would do this ....
CREATE TABLE tblCHECKtest
(
item_code char(4)
CONSTRAINT CK_tblCHECKtest CHECK (item_code = '0000')
)
how can I do the above in access via a sql command ... it keeps returning 'Syntax error in CONSTRAINT clause'
thanks for any help