I'm trying to create an expression field in my query that multiplies 2 fields that are in the query. Here is the code I'm using...
The quantity field has the amount of pieces that we produced in a given day. The NTA field is a number 1-4 and blank that show the amount of pieces that require the NTA job.
As long as there is a number in the nta field, I get a good calculation. If the nta field is blank, I get #error in the query. What is wrong with the above formula that it isn't replacing the #error with 0?
If I put the 0 at the end of the formula, it replaces the good calcs with 0,so the formula is correct, correct?
Any is greatly appreciated!! Thanks!
Code:
NTA#: IIf(IsError([HeaderProductionQuantity]*[NTA]),0,[HeaderProductionQuantity]*[NTA])
The quantity field has the amount of pieces that we produced in a given day. The NTA field is a number 1-4 and blank that show the amount of pieces that require the NTA job.
As long as there is a number in the nta field, I get a good calculation. If the nta field is blank, I get #error in the query. What is wrong with the above formula that it isn't replacing the #error with 0?
If I put the 0 at the end of the formula, it replaces the good calcs with 0,so the formula is correct, correct?
Any is greatly appreciated!! Thanks!