Make a text box visible on cmd button

mtagliaferri

Registered User.
Local time
Today, 03:16
Joined
Jul 16, 2006
Messages
550
Hi, I have a form with a INFO button, what I need is when the info button is pressed a text box becomes visible on the form and when pressed again the text box become not visible, this will allow the final user the have additional information regading compiling the form etc!
Thanks
Marco
 

Attachments

  • Immagine.JPG
    Immagine.JPG
    86.2 KB · Views: 209
If Me.cmdButtonName.Caption = "Info" then
Me.InfoTextBoxName.Visible = True
Me.cmdButtonName.Caption = "Hide"
Else
Me.InfoTextBoxName.Visible = False
Me.cmdButtonName.Caption = "Info"
End If
 
Thanks, It works perfectly but as default I need the textbox to be hidden when the form is open, the final user would use the INFO button only if needed!
Thanks
Marco
 
set the initial visibility of the textbox to hidden through its own property or you can set the visibility of the textbox to hidden via the Form Load property via the VBA code
 

Users who are viewing this thread

Back
Top Bottom