Toggle Button Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings!

I am sure this is simple but for some reason I can't figure it out.

I want a simple form to pop up when one toggle button is pressed that is
located on another form. When it's deselected I want the form, that came up,
to go away.

Can this be done? Please help! :-) Thanks!!

Wayne
 
Greetings!

I am sure this is simple but for some reason I can't figure it out.

I want a simple form to pop up when one toggle button is pressed that is
located on another form. When it's deselected I want the form, that came up,
to go away.

Can this be done? Please help! :-) Thanks!!

Wayne

Set the Toggle button's Caption to:
Open Form

Code the Toggle button's click event:

If Me!ToggleName.Caption = "Open Form" Then
DoCmd.OpenForm "FormName"
Me!ToggleName.Caption = "Close Form"
Else
DoCmd.Close acForm, "FormName"
Me!ToggleName.Caption = "Open Form"
End If
 
Back
Top