I have two controls. The first is a drop down selector with options of 1-5. The second is a text box. Both are set to use Data Type: Whole Number.
I then want to use Data Valaidation to ensure the following;
-
If field 1 is set to 1 then field 2 must be between 0 and 49,
-
If field 1 is set to 2 then field 2 must be between 50 and 89,
-
If field 1 is set to 3 then field 2 must be between 90 and 110,
-
If field 1 is set to 4 then field 2 must be between 111 and 150,
-
If field 1 is set to 5 then field 2 must be between 151 and 200
My conditions are;
When testing it works fine for condition 1 and also for condition 2, but if for example field 1 is set to 3 AND field 2 is set to 100 (which should be a valid condition) it throws error 2 at me. In fact it throws error 2 at me if field 1 is set to 3,4, or 5.
It only seems to work fine for the first two conditions, if i try and test it for condition 3,4 or 5 then regardless of the value in field 2 it throws error 2 at me.
Any advice or help appreciated!
Regs,
Richard