Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide Dlookup #error message on subform

Status
Not open for further replies.

JennieL

Technical User
May 16, 2005
19
CA
Hi:

I have a subform that uses Dlookup to find a value. When no value is found since there is no record created as of yet, the subform displays #Error.

I would like to hide this error and replace with a zero until records are created.

Any suggestions for me.

Thank you.
 
=Nz(DLookUp(....),0)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
That worked perfectly.

Thank you very much....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top