A
Anthony
Hi,
I have a query with 2 numbers in each record, being a High Number & a Low
Number allocated to each client
I want to put in a form an AfterUpdate module that checks the entered number
does not fall between the numbers in the query.
Eg data in the query could be:
Low High
401 600
901 1000
1001 1100
so if someone entered on my form 520, I could display a message indicating
the number has alreay beed used as it falls between 401 & 600. BUT if
someone entered 601 it would not display a message.
I beleive I can do this using the For..Next statement, but I need a little
help with it, as my VBA knowledge is limited
Could someone direct me to a website that may explain how I could do this a
little better that the Help files do.
Thanks in advance,
Anthony.
I have a query with 2 numbers in each record, being a High Number & a Low
Number allocated to each client
I want to put in a form an AfterUpdate module that checks the entered number
does not fall between the numbers in the query.
Eg data in the query could be:
Low High
401 600
901 1000
1001 1100
so if someone entered on my form 520, I could display a message indicating
the number has alreay beed used as it falls between 401 & 600. BUT if
someone entered 601 it would not display a message.
I beleive I can do this using the For..Next statement, but I need a little
help with it, as my VBA knowledge is limited
Could someone direct me to a website that may explain how I could do this a
little better that the Help files do.
Thanks in advance,
Anthony.