Interesting... I never really thought of closing one like that because when I invoke a query via VBA, it's to create a temporary table of values. Otherwise, I use a DLookUp or something else to get values out of an actual query. I don't open it.
The syntax would be something like
DoCmd.Close acQuery, "Query Name", acSaveNo
Look up the CLOSE method in HELP.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|