G
Guest
How do I get the On_Click event to close the form and go back to the
Switchboard that called the form? Is there a way to capture "Who Called Me?"
I have tried the following and get an error (#2456).
Const cstrProcedure = "cmdbtnCloseForm_Click"
Const strcSwitchBoard = "Rotation Processing SwitchBoard"
Dim strDoc As String
Dim lngI As Long
On Error GoTo HandleError
For lngI = 0 To (Forms.Count - 1)
strDoc = Forms(lngI).Name
If strDoc <> strcSwitchBoard Then
DoCmd.Close acForm, strDoc
End If
Next
Switchboard that called the form? Is there a way to capture "Who Called Me?"
I have tried the following and get an error (#2456).
Const cstrProcedure = "cmdbtnCloseForm_Click"
Const strcSwitchBoard = "Rotation Processing SwitchBoard"
Dim strDoc As String
Dim lngI As Long
On Error GoTo HandleError
For lngI = 0 To (Forms.Count - 1)
strDoc = Forms(lngI).Name
If strDoc <> strcSwitchBoard Then
DoCmd.Close acForm, strDoc
End If
Next