Suppressing blank fields in a report

  • Thread starter Thread starter Tijut
  • Start date Start date
T

Tijut

I have been unable to find any information regarding the
above. I have 40 fields for each person and only want to
display the fields that have entries on my report. Can
someone point me in the right direction?
 
Tijut said:
I have been unable to find any information regarding the
above. I have 40 fields for each person and only want to
display the fields that have entries on my report. Can
someone point me in the right direction?


Not sure I follow that, if a field is Null, a text box
(control) bound to the field will not display anything other
than it's border and (if present) its attached label. If
that's what you want to get rid of, then add code to the
section containing the control to make the control
invisible:

Me.thiscontrol.Visible = Not IsNull(Me.thiscontrol)
Me.thatcontrol.Visible = Not IsNull(Me.thatcontrol)
Me.othercontrol.Visible = Not IsNull(Me.othercontrol)

If the controls are not displaying anything, just taking up
vertical space, then set the control's and its section's
CanShrink property to Yes.
 

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

Back
Top