problems with CanShrink

jeeper987

New member
Local time
Today, 13:41
Joined
Sep 9, 2002
Messages
7
My report hides fields when they are null using this code:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.MyField.Visible = Not IsNull(Me.MyField)
end Sub

I have enabled the CanShrink for each field in the report, but it still leaves some blank space where the excluded fields are. How can I fix this?

Also, is there a way to I can select all fields in the report with a single command instead of doing this :
Me.MyField.Visible = Not IsNull(Me.MyField)

for each field. Maybe something like:
Me.AllFields.Visible = Not IsNull(Me.AllFields)

Thanks in advance
 
yes I set it on the detail section and for each field individually and it still leaves some blank white space
 

Users who are viewing this thread

Back
Top Bottom