I am much more familiar with Excel VBA. In Excel I would do the tasks I'm trying to accomplish in Access like this in the frmM_Activity code:
Code:
Option Explicit
Private Sub cmdSwitchboard_Click()
Unload Me
Load Switchboard
Switchboard.Show
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = 0 Then cmdSwitchboard_Click
End Sub
I did see the OnUnload and OnClose events, but they don't sound like commands to Unload or Close, rather just "do this when you do close", which seems like a very different syntax.
I'm trying to make a transition from Excel to Access so I wonder if you could help me understand how to transfer my understanding of this sequence of events. Sorry to say, I think I need explicit instructions.
Thanks,
- Jeff