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!

If NULL then N/A 1

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I have a simple field in a report that I am trying to have show "N/A" if the field is blank. I am currently simply using
Code:
=Avg([days])

I have tried a few variations but cannot seem to get it right using the =IIF(IsNull...function.

Any help is appreciated.

Thank you,

Paul
 
You should be able to simply use the format property without messing around with the control source:

Code:
Format: $#,##0.00[Green];($#,##0.00)[Red];"Zero";"N/A"

Duane
Hook'D on Access
MS Access MVP
 
Thanks dhookom! I used
Code:
0.0;($#,##0.00);;"N/A"
and I got the desired results.

Thank you for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top