Hey everyone,
I've been playing around with the syntax for this IFF for over 30 minutes and can't seem to get this damn thing working:
From what i've read:
IFF(condition, then, else)
is that correct?
background:
The control source for a text box in one of my forms is currently this:
=DSum("LineCost","MaterialQ","WorkOrderID=" & [WorkOrderID])
What I'm trying to do is implement that IFF statement so that if the the value of that code above is null for a certain record, then put a value of 0 in its place.
The name for the text box is "MaterialCost" and it is pulling data from a query called MaterialQ.
This was the IFF statement I was trying:
=IFF (IsNull ([MaterialCost]), 0, =DSum("LineCost","MaterialQ","WorkOrderID=" & [WorkOrderID]))
Any guidance would be greatly appreciated.
thanks!