Hello all.
I have a calculated field in a query which I want to format to show only only whole numbers. Problem is, I need to test if another field used in the calculation is null, and if so, leave the field blank, NOT put in a zero. If I use an IIf statement to test for this, as so:
Lbs Sold: IIf([Qty]>0,([Qty]*([OzPerUnit]/16)*[Percentage])*1.02," "
the format I put on the field doesn't carry through. Any ideas?
The reason I need to do this is because a report is based on this query, and I need that field to remain blank if there is no number generated, and only whole numbers if there is.
Any assistance would be GREATLY appreciated.
Steve
I have a calculated field in a query which I want to format to show only only whole numbers. Problem is, I need to test if another field used in the calculation is null, and if so, leave the field blank, NOT put in a zero. If I use an IIf statement to test for this, as so:
Lbs Sold: IIf([Qty]>0,([Qty]*([OzPerUnit]/16)*[Percentage])*1.02," "
the format I put on the field doesn't carry through. Any ideas?
The reason I need to do this is because a report is based on this query, and I need that field to remain blank if there is no number generated, and only whole numbers if there is.
Any assistance would be GREATLY appreciated.
Steve