Invisible label

linskill

Registered User.
Local time
Today, 22:42
Joined
Nov 1, 2012
Messages
38
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.

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
Has anyone got any suggestions.

Btw. the offending control label is in a subform if that makes any difference.
 
Not quite sure what you mean by explicit. If you mean turn the visible properties to yes. Yes I have and all is fine.
 
Not quite sure what you mean by explicit. If you mean turn the visible properties to yes. Yes I have and all is fine.

Yes that was what I meant. Normally a label with reflect that Visible status of the Text Box that it is associated with. Given that one of your Labels is not behaving then I'd hide and show it using it's own Visible property (ie. explicitly ;) )
 

Users who are viewing this thread

Back
Top Bottom