I'm having some trouble with extra blank lines in Access97 Report. Allow me to illustrate:
Labelbox1:
Labelbox2:Textbox2
Labelbox3:Textbox3
When I have Null data in the textboxes, I use in the Format section:
If (IsNull(Me.Textbox2)) Then
Me.Labelbox2.Visible=False
Else
Me.Labelbox2.Visible=True
End If
If (IsNull(Me.Textbox3)) Then
Me.Labelbox3.Visible=False
Else
Me.Labelbox3.Visible=True
End If
If (IsNull(Me.Textbox2)) And (IsNull(Me.Textbox3)) Then
Me.Label1.Visible=False
Else
Me.Lable1.Visible=True
End If
In that section of the report, if everything is null it wipes the slate clean, which is exactly what I want. The first two If Then statements are working perfectly. However, in the last If Then statement, when the report is viewed, there is a blank line on the report. How do I get rid of that? P.S. Making Labelbox1: a Textbox is not an acceptable solution to this particular problem.
Labelbox1:
Labelbox2:Textbox2
Labelbox3:Textbox3
When I have Null data in the textboxes, I use in the Format section:
If (IsNull(Me.Textbox2)) Then
Me.Labelbox2.Visible=False
Else
Me.Labelbox2.Visible=True
End If
If (IsNull(Me.Textbox3)) Then
Me.Labelbox3.Visible=False
Else
Me.Labelbox3.Visible=True
End If
If (IsNull(Me.Textbox2)) And (IsNull(Me.Textbox3)) Then
Me.Label1.Visible=False
Else
Me.Lable1.Visible=True
End If
In that section of the report, if everything is null it wipes the slate clean, which is exactly what I want. The first two If Then statements are working perfectly. However, in the last If Then statement, when the report is viewed, there is a blank line on the report. How do I get rid of that? P.S. Making Labelbox1: a Textbox is not an acceptable solution to this particular problem.