E
Eric Blitzer
The code below works inconsistently. Fields that should be
visible are not. Do I have this code right and/or is there
a better way using code
Eric
Private Sub Detail_Format(Cancel As Integer, FormatCount As
Integer)
Me.TanfDays.Visible = Not IsNull(Me.TanfDays)
If Me.FamilyWorks1 = "yes" Then
Me.FamilyWorks1.Visible = True
Me.FWLABEL.Visible = True
Else
Me.FamilyWorks1.Visible = False
Me.FWLABEL.Visible = False
If Me.WorkPlus = "yes" Then
Me.WorkPlus.Visible = True
Me.Label67.Visible = True
Else
Me.WorkPlus.Visible = False
Me.Label67.Visible = False
If Me.WorkFirst = "yes" Then
Me.WorkFirst.Visible = True
Me.Label66.Visible = True
Else
Me.WorkFirst.Visible = False
Me.Label66.Visible = False
End If
End If
End If
End Sub
visible are not. Do I have this code right and/or is there
a better way using code
Eric
Private Sub Detail_Format(Cancel As Integer, FormatCount As
Integer)
Me.TanfDays.Visible = Not IsNull(Me.TanfDays)
If Me.FamilyWorks1 = "yes" Then
Me.FamilyWorks1.Visible = True
Me.FWLABEL.Visible = True
Else
Me.FamilyWorks1.Visible = False
Me.FWLABEL.Visible = False
If Me.WorkPlus = "yes" Then
Me.WorkPlus.Visible = True
Me.Label67.Visible = True
Else
Me.WorkPlus.Visible = False
Me.Label67.Visible = False
If Me.WorkFirst = "yes" Then
Me.WorkFirst.Visible = True
Me.Label66.Visible = True
Else
Me.WorkFirst.Visible = False
Me.Label66.Visible = False
End If
End If
End If
End Sub