M
mscertified
I have a report that prints mailing labels. There are two address lines:
Address1 and Address2. When Address2 is blank I want to omit the line. I have
Can Shrink and CanGrow both set to YES. I also tried the following code. So
far nothing has worked.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Nz(Trim(Me.Address2), "") = "" Then
Me.Address2.Visible = False
Else
Me.Address2.Visible = True
End If
End Sub
The control does have Format set to > I dont know if that is a factor.
Address1 and Address2. When Address2 is blank I want to omit the line. I have
Can Shrink and CanGrow both set to YES. I also tried the following code. So
far nothing has worked.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Nz(Trim(Me.Address2), "") = "" Then
Me.Address2.Visible = False
Else
Me.Address2.Visible = True
End If
End Sub
The control does have Format set to > I dont know if that is a factor.