Function CloseActiveReport()
On Error Resume Next
DoCmd.Close acReport, Screen.ActiveReport.Name
End Function
Create a custom menu, toolbar or button (View-Toolbars-Customize)
Attach the function to it (Right click the button and choose Properties, then in OnAction box type 'CloseActiveReport'.
Whenever you have a report open, you can close it by clicking the button...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.