The Values i am entering are int values. and instead of putting values into
the validation rule, i Would like it to check values in other table. eg
between field_A and field_B. But it doesn't allow me to look up from table
view. Pls help
> Open the table in design view.
> Select the date/time field you wish to limit.
[quoted text clipped - 4 lines]
> >set.
> > but i need it to check that range from a table or form. How do i do so?
In the context of a form, you can use the BeforeUpdate event of the Form to
test whether the value is in range.
That won't work in other contexts though (e.g. entering directly into a
table, or using an Append query.)

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> The Values i am entering are int values. and instead of putting values
> into
[quoted text clipped - 10 lines]
>> >set.
>> > but i need it to check that range from a table or form. How do i do so?
Mrakulis - 29 Feb 2008 10:30 GMT
Allen. Do you mind giving mw your e-mail so i can send you an example of what
i am trying to do? pls
> In the context of a form, you can use the BeforeUpdate event of the Form to
> test whether the value is in range.
[quoted text clipped - 16 lines]
> >> >set.
> >> > but i need it to check that range from a table or form. How do i do so?
Allen Browne - 29 Feb 2008 11:48 GMT
Hope you understand we cannot accept databases from everyone and do your
debugging for you.
Your choices are:
a) Use table-level validation:
- Advantage: works in every context
- Disadvantage: not flexible enough for lookups
b) Use form-level validation:
- Advantage: powerful and programmable
- Disadvantage: does not apply in other contexts.

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> Allen. Do you mind giving mw your e-mail so i can send you an example of
> what
> i am trying to do? pls
Mrakulis - 29 Feb 2008 12:58 GMT
I understand Completely. Wanted to show screenshots.
> Hope you understand we cannot accept databases from everyone and do your
> debugging for you.
[quoted text clipped - 11 lines]
> > what
> > i am trying to do? pls