G
Guest
I am using this expression in a text box to calculate a percentage of errors.
=CDbl([Prep_Err_txt].[Value])/IIf(CDbl([Prep_Batch_Total_txt].[Value])=0,1,CDbl([Prep_Batch_Total_txt].[Value]))
These are the expressions used for the Prep_Err-txt and Prep_Batch_Total_txt
fields, respectively.
=Nz([Prep_Batch_Total])
=Nz([SumByEmp_Ind_Prep.CountOfType of Error]) ' this field is from a
calculated field in a query.
This works fine except when the [Prep_Batch_Total_txt] field is blank. I
thought the Nz function would return a 0 (zero)? How can I modify this
expression to display a 0.00% when this occurs?
Your help is always appreciated.
=CDbl([Prep_Err_txt].[Value])/IIf(CDbl([Prep_Batch_Total_txt].[Value])=0,1,CDbl([Prep_Batch_Total_txt].[Value]))
These are the expressions used for the Prep_Err-txt and Prep_Batch_Total_txt
fields, respectively.
=Nz([Prep_Batch_Total])
=Nz([SumByEmp_Ind_Prep.CountOfType of Error]) ' this field is from a
calculated field in a query.
This works fine except when the [Prep_Batch_Total_txt] field is blank. I
thought the Nz function would return a 0 (zero)? How can I modify this
expression to display a 0.00% when this occurs?
Your help is always appreciated.