Hopefully an easy one, I have a 2 controls on a form which are by default not visible and a command button to toggle them on or off. This seems to work OK as the controls become visible when they are supposed to. For some reason the label on one of the controls will not become visible. It is attached to the control and I have recreated it just in case.
Has anyone got any suggestions.
Btw. the offending control label is in a subform if that makes any difference.
Code:
Private Sub editcatbtn_Click()
TrialEditCombo.Visible = True
Trialcombo.Visible = False
Forms!trialcataloguemasterF!TrialCatalogueT.Form!editStakeCombo.Visible = True
Forms!trialcataloguemasterF!TrialCatalogueT.Form!stakecombo.Visible = False
Refresh
End Sub
Private Sub newcatBtn_Click()
Trialcombo.Visible = True
TrialEditCombo.Visible = False
Forms!trialcataloguemasterF!TrialCatalogueT.Form!stakecombo.Visible = True
Forms!trialcataloguemasterF!TrialCatalogueT.Form!editStakeCombo.Visible = False
DoCmd.GoToRecord , , acNewRec
Refresh
End Sub
Btw. the offending control label is in a subform if that makes any difference.