Ah, it's a field-level validation rule. A field-level validation rule can't
refer to other fields, you need a table-level validation rule to do that. To
create a table-level validation rule, open the table in design view and
then, if the Properties window is not visible, choose Properties from the
View menu. The table-level Validation Rule property is the third property
down in the list.
And yes, leave out the quotes.
--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com
The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
SteveK said:
Also, I've taken the speech marks off to see what happens. When I test the
validation, a message appears saying "Invalid SQL Syntax - cannot use
multiple columns in a column-level CHECK constraint".
Douglas J. Steele said:
I don't understand the problem.
You're saying in your post that "the dates sent are all greater than
those
requested", which is exactly what the Validation Rule you posted said
they
should be.
--
Doug Steele, Microsoft Access MVP
(No private e-mails, please)
I'm trying to restrict entries into a table so that the date something
was
sent can't be before a request for it was put in. In the Validation
Rule
in a
table, I've typed in:
"[DateSent]>=[DateRequest]"
I've checked the relevant dates, and the dates sent are all greater
than
those requested. Any help would be greatly appreciated.
Steve