Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

asked on

How make field read 0.00 if situation is empty or null

I have this code in a form field.  
=DSum("[TotalHours]","tblJobNumberDetail","[JobNumber] = " & [Forms]![frmMoldRepairs]![frmJobNumberDetail].[Form].[txtJobNumber])

Open in new window

But if the field is empty or null I get #Error.  How can I make it read "0.00"

ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SteveL13

ASKER

John, the 2nd solution worked perfectly.  Thank you very much.