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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closing report with a click of a button.

Status
Not open for further replies.

hengsin

Technical User
Mar 26, 2003
128
MY
Can i know how close a report using VBA code? I want this code to attach to a buton OnClick Event.

Thanks
 
Use the following code within the event:

ReportToClose = "rptYourReportName"
docmd.close acReport,ReportToClose

Replace the report name as appropriate.



Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top