F fritz New member Local time Today, 23:22 Joined Dec 8, 2010 Messages 6 Dec 8, 2010 #1 I have an open report on the desktop and want to close it with code. Can anyone help?
John Big Booty AWF VIP Local time Tomorrow, 06:22 Joined Aug 29, 2005 Messages 8,262 Dec 8, 2010 #2 Try; Code: DoCmd.[URL="http://msdn.microsoft.com/en-us/library/aa212263%28office.11%29.aspx"]Close[/URL] acReport, "YourReportName"
Try; Code: DoCmd.[URL="http://msdn.microsoft.com/en-us/library/aa212263%28office.11%29.aspx"]Close[/URL] acReport, "YourReportName"
V vbaInet AWF VIP Local time Today, 21:22 Joined Jan 22, 2010 Messages 26,374 Dec 8, 2010 #3 You might also want to add acSaveNo to the third of that method so design changes aren't saved. It's not vital but worth having.
You might also want to add acSaveNo to the third of that method so design changes aren't saved. It's not vital but worth having.
F fritz New member Local time Today, 23:22 Joined Dec 8, 2010 Messages 6 Dec 8, 2010 #4 Thanks a lot.