Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On Close View/Print Report Return to Switchboard

Status
Not open for further replies.

capndave

Technical User
Mar 4, 2003
36
US
After viewing or printing report I want close report and return to the main menu (switchboard). I have tried using a macro to open mainmenu on close and on deactivate properties of the report. The main menu appears when I select close on the report, but the report remains open as well.
Any suggestions would be deeply appreciated.
 
Forget the Macro and paste this code in the code window. Remember to change the "SwitchboardformName" to its original name
Code:
Private Sub Report_Close()
    DoCmd.OpenForm "SwitchboardformName"
End Sub

________________________________________________________________________
Zameer Abdulla
Visit Me
A person who misses a chance and the monkey who misses its branch can't be saved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top