I have a Function, when I check a check box, a group/line of text boxes should appear. If the check box is left unchecked, that previously mentioned group of text boxes should be invisible, four in all. Here is the function:
Function ShowHide100()
If Forms!frmqryECNMasterData100.Check140 = Yes Then
Forms!frmqryECNMasterData100.Label132.Visible = True
Forms!frmqryECNMasterData100.Combo133.Visible = True
Forms!frmqryECNMasterData100.Text135.Visible = True
Forms!frmqryECNMasterData100.Text137.Visible = True
Else
Forms!frmqryECNMasterData100.Combo133.Visible = False
Forms!frmqryECNMasterData100.Label132.Visible = False
Forms!frmqryECNMasterData100.Text135.Visible = False
Forms!frmqryECNMasterData100.Text137.Visible = False
End If
End Function
I can not see what is wrong with this function, but when I check the check box now the above boxes become invisible and nothing seems to turn them back on. It is like they are permently invisible, but in the property box it says visible=yes. In the forms property, OnCurrent, I have entered =ShowHide100()and in the checkbox's property, AfterUpDate, I entered =ShowHide100(). Go figure, anyone have an idea on this one? Thank you in advance for any help.
Function ShowHide100()
If Forms!frmqryECNMasterData100.Check140 = Yes Then
Forms!frmqryECNMasterData100.Label132.Visible = True
Forms!frmqryECNMasterData100.Combo133.Visible = True
Forms!frmqryECNMasterData100.Text135.Visible = True
Forms!frmqryECNMasterData100.Text137.Visible = True
Else
Forms!frmqryECNMasterData100.Combo133.Visible = False
Forms!frmqryECNMasterData100.Label132.Visible = False
Forms!frmqryECNMasterData100.Text135.Visible = False
Forms!frmqryECNMasterData100.Text137.Visible = False
End If
End Function
I can not see what is wrong with this function, but when I check the check box now the above boxes become invisible and nothing seems to turn them back on. It is like they are permently invisible, but in the property box it says visible=yes. In the forms property, OnCurrent, I have entered =ShowHide100()and in the checkbox's property, AfterUpDate, I entered =ShowHide100(). Go figure, anyone have an idea on this one? Thank you in advance for any help.