Matt Greatorex
Registered User.
- Local time
- Today, 17:45
- Joined
- Jun 22, 2005
- Messages
- 1,019
I have about ten fields on a report. Each currently gets their value from a table I've created. This worked fine until I had to increase the number of fields to a point where they won't all fit.
As the table holds information on which employees are missing information, I would like to simply display an 'X' if the field value is null, and a '-' if it isn't.
The problem I have is using the IIf functionality.
The original ControlSource for one of the fields was
[Seniority].
I changed this to
=IIf(IsNull([Seniority]),'X','-')
Unfortunately, what happens is that all records are being shown as '-', regardless of whether or not their value is null.
Is there some setting I should be aware of that might be affecting my results? Is my syntax incorrect? I'm hoping it's something simple, as I can handle looking like an idiot as long as I get the report working.
As the table holds information on which employees are missing information, I would like to simply display an 'X' if the field value is null, and a '-' if it isn't.
The problem I have is using the IIf functionality.
The original ControlSource for one of the fields was
[Seniority].
I changed this to
=IIf(IsNull([Seniority]),'X','-')
Unfortunately, what happens is that all records are being shown as '-', regardless of whether or not their value is null.
Is there some setting I should be aware of that might be affecting my results? Is my syntax incorrect? I'm hoping it's something simple, as I can handle looking like an idiot as long as I get the report working.