I have written code to close all open reports, or close all forms (except a couple), using code similar to the following:
While Application.Rep orts.Count > 0
I can’t figure out how to do the same thing with the half-dozen or so small query windows (tables) that may remain open when I finish a particular task. I have to click the [x] close button on the Title bar of each one.
TIA
-BhanteU
While Application.Rep orts.Count > 0
DoCmd.Close acReport, Application.Rep orts(0).Name, acSavePrompt
WendI can’t figure out how to do the same thing with the half-dozen or so small query windows (tables) that may remain open when I finish a particular task. I have to click the [x] close button on the Title bar of each one.
TIA
-BhanteU
Comment