mrabrams2
Registered User.
- Local time
- Today, 17:33
- Joined
- Apr 29, 2003
- Messages
- 54
Sounds easy. Actually, it is. That is, when the user closes the report with the 'Close' button.
But when they close the report using the 'X' in the upper right hand corner though....
Here is the code I have in the report's Close Event:
Private Sub Report_Close()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "MENU"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
This code does not work if you close the report with the 'X'.
Can I code it to close the report & open the form even if the user click's the 'X' ? (I have code to remove the 'X' and the toolbars, but then there'd be no way out !!)
Thank you for any suggestions.
Michael
But when they close the report using the 'X' in the upper right hand corner though....
Here is the code I have in the report's Close Event:
Private Sub Report_Close()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "MENU"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
This code does not work if you close the report with the 'X'.
Can I code it to close the report & open the form even if the user click's the 'X' ? (I have code to remove the 'X' and the toolbars, but then there'd be no way out !!)
Thank you for any suggestions.
Michael