I have a query that checks that a set of values (the values in 6 fields) are actually equal to the total they submitted on the form.
The fields are set to Double with Auto for # decimal places. But I've also tried it with them set to 2-Decimal places.
The SQL query looks like this:
Expand|Select|Wrap|Line Numbers
- UPDATE ETL_TBL SET ETL_TBL.ERR_CD = "802"
- WHERE (((ETL_TBL.SPEKR_TOTL_AMT)<>([SPEKR_Fee_AMT]+[SPEKR_Air_AMT]+[SPEKR_HTL_AMT]+[SPEKR_Taxi_AMT]+[SPEKR_PRMN_AMT]+[SPEKR_OTHR_AMT])) AND ((ETL_TBL.OVRD_VALDN_IND)=No) AND ((ETL_TBL.VALD_STA_IND)=No));
Expand|Select|Wrap|Line Numbers
- <>([SPEKR_Fee_AMT]+[SPEKR_Air_AMT]+[SPEKR_HTL_AMT]+[SPEKR_Taxi_AMT]+[SPEKR_PRMN_AMT]+[SPEKR_OTHR_AMT])
Is there a reason this might be? Is there a different way to do this? Is there some other way to check?
Thanks for any help I can get ASAP!