Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check Constraint in MS Access 2000

Status
Not open for further replies.

pollo4

Programmer
Oct 23, 2002
6
AR
Hi!
Im creating a table with an SQL query and I want to set a validation rule to a numeric (long) field. My db is in MS Access 2000.
I need something like this (but this doesnt work):

CREATE TABLE tablename (fieldname LONG CONSTRAINT CHECK constrainname (>=0 and <=50000))

Does anybody know who to do this correctly?

Thanks a lot!

Pollo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top