Hi, Please assist,
I have the following fields that is either hidden or visible depending on a selection made on a combo box (MM03). the selection is on one tab and the hidden / visible fields are on a different tab. then combo is selected, the field that should display is not visible until I press F5 to refresh page. even though i have refreshed in the code.
I have the following fields that is either hidden or visible depending on a selection made on a combo box (MM03). the selection is on one tab and the hidden / visible fields are on a different tab. then combo is selected, the field that should display is not visible until I press F5 to refresh page. even though i have refreshed in the code.
Code:
If Me.MM03 = "Military" Then
Me.CP.Visible = True
Me.EUC.Visible = True
Me.EXP.Visible = True
Me.IMP.Visible = True
Me.CPAttachment.Visible = True
Me.EUCAttachment.Visible = True
Me.EXPAttachment.Visible = True
Me.IMPAttachment.Visible = True
Me.LabelA.Visible = True
Refresh
Else
Me.CP.Visible = False
Me.EUC.Visible = False
Me.EXP.Visible = False
Me.IMP.Visible = False
Me.CPAttachment.Visible = False
Me.EUCAttachment.Visible = False
Me.EXPAttachment.Visible = False
Me.IMPAttachment.Visible = False
Me.LabelA.Visible = False
Refresh
End If