Closing Queries

M

mjj4golf

I want to close a query when I am done with it in VBA. What's the best way
to do it.
DoCmd.Close queryname gets a type mismatch??????????????

Mike J
 
F

fredg

I want to close a query when I am done with it in VBA. What's the best way
to do it.
DoCmd.Close queryname gets a type mismatch??????????????

Mike J

Why not read VBA Help?
DoCmd.Close acQuery, "QueryName"
 
M

mjj4golf

Two smart a...
I did read the help which is the first place go! I have the same Docmd you
sug and get the type mismatch. But thanks anyway.
 
Top