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

Syntax for IIf Statement 1

Status
Not open for further replies.

bethabernathy

Programmer
Jul 13, 2001
254
MX
Hi - I have a report that lists the field "IncidentDescription". I want the "IncidentDescription" to display only if there is data in the field. If the record is empty, I don't want the field to display. I have the following Syntax in the text field, but it is working yet:

=IIf([IncidentDescription]="Null"," ")

Any suggestions??

Thanks, Beth beth@integratedresourcemgmt.com
 
I think it should be:

=IIf([IncidentDescription]=Null," ",[IncidentDescription])

You could also try:
=NZ([IncidentDescription]," ")


Let me know if this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top