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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting #Error in text box on report 1

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
Can I use something like this, so it shows a blank instead
Code:
=IIf(IsNull(DLookUp("Description","Parts2","PC=" & [PC])),"",DLookUp("Description","Parts2","PC=" & [PC]))
The Dlookup works fine it there is something to look up but some columns are blank
it still shows #error
what am I missing

DougP, MCP, A+
 
Do you mean:
=IIf(IsNull([PC]),"",DLookUp("Description","Parts2","PC=" & [PC]))
 
Weel, that's what comes of posting without previewing :)

=IIf(IsNull([PCs]),"",DLookUp("Description","Parts2","PC=" & [PCs]))

As typing all those brackets is a bore, read PC for PCs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top