Closing Queries

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Actually, I think the problem is that you used too few question marks.
 
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"
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top