Change a field with the value NIL to nothing in a report?

R

Richard Horne

Hi guys,

I have a report which has two fields called NSN and PATTERN, the default
value on the entry forms for these fields is NIL as most times these fields
will not be filled in.

I have these on a report without a field header, so NILs in the middle of a
report look a bit out of place, so how can I make it so that if those fields
are equal to NIL then nothing is displayed, but if an actual entry has been
made then that entry is displayed instead?

I'm guessing it's something along the lines of

If Me='NIL' then display nothing

But I don't know how to write this in code that Access will understand.
 
A

Allen Browne

Set the Control Source of this text box to:
=IIf([NSN] = "NIL", Null, [NSN])
Then change its Name property as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top