hide labels in report for zero fields

G

Guest

Is there any way to hide a label based on the value of its field? I am doing
an employee report and don't want to show fields and labels when they are not
applicable. I can use conditional formatting to hide the zero value field,
but it will not hide the associated label. Each employee gets their page in
the report, so I want some pages to have the field and label, and others,
where there is no data, not to see it.
 
D

Duane Hookom

Try change the label to a text box with a control source like:
=IIf([YourField]=0,Null,"Your Label")
 
G

Guest

Thanks Duane! I had tried other suggestions on the forum, but yours is the
only one that worked.

Duane Hookom said:
Try change the label to a text box with a control source like:
=IIf([YourField]=0,Null,"Your Label")

--
Duane Hookom
MS Access MVP

fpoulenc said:
Is there any way to hide a label based on the value of its field? I am
doing
an employee report and don't want to show fields and labels when they are
not
applicable. I can use conditional formatting to hide the zero value
field,
but it will not hide the associated label. Each employee gets their page
in
the report, so I want some pages to have the field and label, and others,
where there is no data, not to see it.
 

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