Validating calculation of total not individual components
Hello,
I'm creating a grant application form with the following items:
A = total cost of project
B = deduct total amount of funds already on hand
C = total grant amount being applied for
The calculation is A-B=C.
The valadation is: $0=> C <= $100,000.
If A = $150,000 and B = -$90,000, then C = $60,000.
Because the calculation is automatically updated as soon as A is entered (and B has not been entered), then C = $150,000 which automatically triggers an error message.
What would be the script to allow A to be >= $100,000, but yet C still has to be <= $100,000 once A and B are entered. I tried playing with an IF-THEN statement, but no luck. I don't want users to enter B first as it seems counterintuituve to start with a negative number in this scenario. Any suggestions? Thanks.
