Apr 20, 2003 #1 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
Can i know how close a report using VBA code? I want this code to attach to a buton OnClick Event. Thanks
Apr 20, 2003 #2 Steve101 Programmer Mar 29, 2002 1,473 AU 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) Upvote 0 Downvote
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)
Apr 20, 2003 Thread starter #3 hengsin Technical User Mar 26, 2003 128 MY thanks, it's what i want to do. Upvote 0 Downvote