kallenanderson
New member
- Local time
- Today, 10:19
- Joined
- Jan 11, 2012
- Messages
- 2
Can someone please show me or guide me to a good resource to figure out how to use a toggle button within one form to open/close a separate form? I would like to have the form appear when the toggle button is clicked and close when the toggle button is clicked again.
For whatever reason, I can't seem to find a good reference for the coding this so I'm just guessing at this point. Below is my latest attempt......
Private Sub ReportsToggleButton_Click()
If 0 Then DoCmd.Close "frmReports"
If 1 Then DoCmd.OpenForm "frmReports"
End Sub
Thanks.
For whatever reason, I can't seem to find a good reference for the coding this so I'm just guessing at this point. Below is my latest attempt......
Private Sub ReportsToggleButton_Click()
If 0 Then DoCmd.Close "frmReports"
If 1 Then DoCmd.OpenForm "frmReports"
End Sub
Thanks.