Validation Rule

T

Tausif

Hi All GURUS,
I have a table name CustomerSystem where I have stored Purchase_Date and
Warranty_Expiry dates. I would like to put a validation rule at
Warranty_Expiry i.e. it should be greater then Purchase_Date. I tried
[Purchase_Date] its giving me error Invalid Sql Syntax - Cant use multiple
columns at column level CHECK constraint.

How to define such validation rule?

Tausif
 
T

Tausif

Try to create Validation rule at table level but not at the field level. Use
following as reference.

http://www.kbalertz.com/209106/Table.Field.Validation.Causes.Error.aspx
Tausif.

Tausif said:
Hi All GURUS,
I have a table name CustomerSystem where I have stored Purchase_Date and
Warranty_Expiry dates. I would like to put a validation rule at
Warranty_Expiry i.e. it should be greater then Purchase_Date. I tried
[Purchase_Date] its giving me error Invalid Sql Syntax - Cant use
multiple
columns at column level CHECK constraint.

How to define such validation rule?

Tausif
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top