I have searched through the forums to find an answer to my dilema, but nothing seems to work!
I have a control that is summing up all of the records that are returned on the main form. If there are no records that are generated by the query, it is returning an #Error.
I've tried the following:
=IIf(IsNull(Sum([LE_Acct_1])),0,Sum([LE_Acct_1]))
=IIf(NZ(Sum([LE_Acct_1])),0,Sum([LE_Acct_1]))
=IIf(Sum([LE_Acct_1])IsNull,0,Sum([LE_Acct_1]))
And I still get the #Error.
The only way I didn't get the error is if I did it this way:
=IIf(NZ([LE_Acct_1])),"0.00",Sum([LE_Acct_1]))
BUT the problem was that it looked at only one record in the returned recordset and assigned the value. I need to keep the returned records null (for report appearances).
Anyone know why it doesn't work if I have the NZ(Sum([LE_Acct_1)???
Thanks -
Carie
I have a control that is summing up all of the records that are returned on the main form. If there are no records that are generated by the query, it is returning an #Error.
I've tried the following:
=IIf(IsNull(Sum([LE_Acct_1])),0,Sum([LE_Acct_1]))
=IIf(NZ(Sum([LE_Acct_1])),0,Sum([LE_Acct_1]))
=IIf(Sum([LE_Acct_1])IsNull,0,Sum([LE_Acct_1]))
And I still get the #Error.
The only way I didn't get the error is if I did it this way:
=IIf(NZ([LE_Acct_1])),"0.00",Sum([LE_Acct_1]))
BUT the problem was that it looked at only one record in the returned recordset and assigned the value. I need to keep the returned records null (for report appearances).
Anyone know why it doesn't work if I have the NZ(Sum([LE_Acct_1)???
Thanks -
Carie