Nov 4, 2004 #1 alfalf Programmer Joined Mar 6, 2003 Messages 155 Location BA Hello. I have this piece of code: Code: While Reports.count > 1 DoCmd.Close acReport, Reports(0).Name Wend but I can't get Reports to close with it (which is my intention). Any help will be appreciated. Thx.
Hello. I have this piece of code: Code: While Reports.count > 1 DoCmd.Close acReport, Reports(0).Name Wend but I can't get Reports to close with it (which is my intention). Any help will be appreciated. Thx.
Nov 5, 2004 #2 mordja Programmer Joined Apr 27, 2004 Messages 294 Location GB alfalf, Dont know why that is not working. While Reports.Count > 0 MsgBox Reports(0).Name DoCmd.Close acReport, Reports(0).Name Wend Will close all reports opened or not. Mordja Upvote 0 Downvote
alfalf, Dont know why that is not working. While Reports.Count > 0 MsgBox Reports(0).Name DoCmd.Close acReport, Reports(0).Name Wend Will close all reports opened or not. Mordja
Nov 5, 2004 Thread starter #3 alfalf Programmer Joined Mar 6, 2003 Messages 155 Location BA Nope! Your code is the same. I get no response as if Reports are not opened, and they stay like that. ? Upvote 0 Downvote
Nope! Your code is the same. I get no response as if Reports are not opened, and they stay like that. ?