Ok, I asked this question in another post but it became too messy...
Here is what I would like to do...
First, there is a table called Age where the user enters age ranges, and there can be multiple age ranges entered into the table... In field names in the table are "MinAge" and "MaxAge".
I have a toggle button whereby the user validates the data to ensure four things:
- That there aren't any null fields in the table
- That the MaxAge is greater than the MinAge for each row
- That the MaxAge on a row is greater than the Min age on the previous row...
- That the Min Age on a row is sequentially by one than the Max Age on the next row
Some examples
- Min Age Max Age
ROW 1: 0 5
ROW 2: 6 8
PASS because Min age is > than Max age for each row, Min age on row 2 is > than max age on row 1, and Min age on row 2 is sequentially greater by 1 than the max age on row 1.
Min Age Max Age
ROW 1: 5
ROW 2: 6
FAIL because there are null values in row 1 and 2
Min Age Max Age
ROW 1: 10 5
ROW 2: 6 8
FAIL because the Min Age is greater than the Max age in row 1
Min Age Max Age
ROW 1: 0 5
ROW 2: 4 8
FAIL because the Min Age on Row 2 is less than the Max age on row 1.....