Arg81
Well-known member
One of my tables has 6 particular fields.
Well, this is actually 12, as each "field" has a min and a max value. This is known as the "range". I then need to program outside the range, for "action" and "reject".
So it'll look something like;
Now, the table has the Range min and the Range max values stored already.
I'll try and explain this the best I can
Reject -- Action Max -- Action Min -- Range Min
Action Min = Range Min
Action Max = Range Min - 2
Reject = Range Min - 2
Range Max -- Action Min -- Action Max -- Reject
Action Min = Range Max
Action Max = Range Max + 2
Reject = Range Max + 2
Sooo....a row would in theory look like this;
now, that may look weird, but I then need to add validation in my program - example:
IF value < 7 THEN do not allow any more rows to be added.
IF value >= 7 and <9 THEN flag a comments box as Action is required
IF value >=9 and <10 THEN do nothing
IF value >=10 and <12 THEN flag a comments box as Action is required
IF value >=12 THEN do not allow any more rows to be added.
Make sense yet?
OK, question is, would it be easier for me to
(a) set a datatable up in my app that pulls the Range values across, and then creates "on the fly" columns for the other values?
(b) on the form, create a sub that uses the label.text and works out the other values?
with (b), I would require the values to change as the value in a combobox is changed (just like the databinding would from (a) )
Regards,
Well, this is actually 12, as each "field" has a min and a max value. This is known as the "range". I then need to program outside the range, for "action" and "reject".
So it'll look something like;
Reject -- Action max -- Action min -- Range min -- Range max -- Action min -- Action max -- Reject
Now, the table has the Range min and the Range max values stored already.
I'll try and explain this the best I can

Reject -- Action Max -- Action Min -- Range Min
Action Min = Range Min
Action Max = Range Min - 2
Reject = Range Min - 2
Range Max -- Action Min -- Action Max -- Reject
Action Min = Range Max
Action Max = Range Max + 2
Reject = Range Max + 2
Sooo....a row would in theory look like this;
Reject -- Action Max -- Action Min -- Range Min -- Range Max -- Action Min -- Action Max -- Reject
7 -- 7 -- 9 -- 9 -- 10 -- 10 -- 12 -- 12
now, that may look weird, but I then need to add validation in my program - example:
IF value < 7 THEN do not allow any more rows to be added.
IF value >= 7 and <9 THEN flag a comments box as Action is required
IF value >=9 and <10 THEN do nothing

IF value >=10 and <12 THEN flag a comments box as Action is required
IF value >=12 THEN do not allow any more rows to be added.
Make sense yet?

OK, question is, would it be easier for me to
(a) set a datatable up in my app that pulls the Range values across, and then creates "on the fly" columns for the other values?
(b) on the form, create a sub that uses the label.text and works out the other values?
with (b), I would require the values to change as the value in a combobox is changed (just like the databinding would from (a) )
Regards,