I have come up with the following two expressions:
IIf(IsNull([OT]),"0",[OT])
and
IIf(IsNull([DT]),"0",[DT])
However when I use the espressions in criteria, the null values do not
change to "0".
Any suggestions? Is there a way to get the values of the two fields added
together without changing the null fields to "0" in the original table?
Thank you!
Field: IIF(OT is Null,0,OT) + IIF(DT is Null,0,DT)
Or you can use the Nz function
Field: Nz(OT,0) + Nz(DT,0)
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
Expr1:Nz(OT,0) + Nz(DT,0)
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
"Laura" <La...@discussions.microsoft.com> wrote in message
news:F488A6CE-E335-4C4B...@microsoft.com...