A family of Microsoft relational database management systems designed for ease of use.
You have to set the Validation Rule in the properties of the table, not in the properties of one of the fields.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a table which contains the order details...
In that table I have two fields named
Ordered date
and Delivery Date
I have to create a validation rule in the delivery date so that the user cannot enter a date less than the Ordered date..
Please help me in this ....
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
You have to set the Validation Rule in the properties of the table, not in the properties of one of the fields.
You can create a Validation Rule and Validation Text for the table as a whole.
Open the table in design view.
Activate the Property Sheet.
Enter the rule in the Validation Rule property:
[Delivery Date]>=[Ordered Date] Or [Delivery Date] Is Null
and enter an appropriate message in the Validation Text property.
It really works..Thanks a lot....
I am sorry. When I tried putting the formulas in table, Again the delivery table is accepting all the dates. Less than and greater than ordered dates.
Whether I have to change anyother property.
I have set a validation rule for the ordered date. But no Validation rule was set for the Deliverred date.
The formula which you have suggested I have updated in the prpoerty sheet of the tables.
Whether I have to do something more...
I tried the above and I got the following error message.
Invalid SQL Syntax- Cannot use multiple columns in a column level CHECK constraint
Please help ..