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!

Display data in a Report

Status
Not open for further replies.

BSC5905

Technical User
Apr 30, 2004
20
US
In a report I have a field that contains no data because “Allow Zero Length” is set to yes. This I expected. Is there a way on the report or the query which the report is based on to create an expression that will display “N/A” or any other text that I choose to be displayed when there is no data in that field when I generate my report?
 
In your report field's control source, enter the following expression (Replace [Field] with the name of the field from the table or query)...

= IIf(IsNull([Field]),"N/A",[Field])
 
You can use IIf:

[tt]=IIf(Trim([Field1] & " ") = "", "N/A",[Field1])[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top