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

IS THERE AN MS ACCESS CLOSE ALL TABLES/QUERIES MACRO OR CODE COMMAND?

Status
Not open for further replies.

Hiccup

Programmer
Jan 15, 2003
266
US
I used the code below to close all forms, but it doesn't work for Tables and Queries. Anyone know what needs to be changed to acccomplish closing all open Tables and Queries?

Function CloseForms1()
Do While Forms.Count > 0
DoCmd.Close acForm, Forms(0).Name
Loop
End Function

What I'm having to do is include several "Close" macro commands in the various macros to close all of the open Tables and Queries.

Appreciate hearing from the experts!

Ed "Hiccup" Hicks
ed.hicks@wcg.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top