Display a message when no value is stored in a field. (1 Viewer)

Kage

New member
Local time
Today, 23:39
Joined
Mar 8, 2001
Messages
8
I have a number field that is displayed on a report. There are times when there will be no value stored in the field. When this is the case, I want to display a text message instead of leaving it blank. I use this field for calculations so I cannot change it to a text field. Is there a way to do this? I was playing with the following formula, but get the error message ' #ERROR '

=(IIF([Volume] Is Null,"Data Not Available",[Volume]))
 

Atomic Shrimp

Humanoid lifeform
Local time
Today, 23:39
Joined
Jun 16, 2000
Messages
1,954
I think it might have to be:

=(IIF(IsNull([Volume]),"Data Not Available",[Volume]))

But I'm not sure.

Mike
 

Kage

New member
Local time
Today, 23:39
Joined
Mar 8, 2001
Messages
8
Thanks for your help, but unfortunately it did not work....

I will keep trying.

:-(
 

Alexandre

Registered User.
Local time
Tomorrow, 05:39
Joined
Feb 22, 2001
Messages
794
If I understand well, you use that field for calculation and therefore would like to store 0 when no value is is entered but let the user see a message instead. If this is the case, use 0 as default value for your field/control, and in format: #;;"message"
 

llkhoutx

Registered User.
Local time
Today, 17:39
Joined
Feb 26, 2001
Messages
4,018
Try

=(IIF([Volume] * "" = ""),"Data Not Available",[Volume]))

IsNull works funny sometimes.
 

Kage

New member
Local time
Today, 23:39
Joined
Mar 8, 2001
Messages
8
Unfortunately that will not work. The problem is that we do not know what the value is because it was never reported. The fact that the issue was reported at all indicates that the value is greater than zero.
 

Users who are viewing this thread

Top Bottom