View Single Post
  #2  
Old May 25th, 2010, 11:49 PM posted to microsoft.public.access
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default How to specify a validation rule with multiple criteria

Access stores data in tables, sort of a "bucket o' data". There is no
readily discernable order.

Thus, there's no built-in way for Access to know what YOU mean by "the next
record" unless you explain it to Access in excruciating detail.

You've described "how" you are trying to accomplish something, but not much
on what that underlying business need is.

If you'll provide a bit more description about that business need, folks
here may be able to offer more specific suggestions.

It would also help to have some idea of the domain we're talking about. Is
the "number" a measurement? Of what? You appear to have records related to
other records... how?

More info, please...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"FL" wrote in message
...
How can I specify a validation rule that will perform the following
changing
validation.

Example:

Number in field must be between 8 and 12 for this record.
Number in field must be between 18 and 22 for next record in same form.
Number in field must be between 28 and 32 for next record in same form.

The criteria for number range acceptability can change at any moment but
the
actual recording of number always goes into same field.

If this is not achievable then how should it be set up? Typically, I
would
have many records with numbers falling into a single range (such as 8 to
12).
However, the same form and table record data is used that requires a
different range of numbers from time to time. Any suggestions?
--
FL