Close a database with code

G

Gina

Really stupid question, but how can I close a database
(but leave Access open) using code?
I assume it's a DoCmd, but I'm not sure exactly what the
object is.
Again, forgive me for asking such a stupid question.
Thanks...
 
R

Rick Brandt

Gina said:
Really stupid question, but how can I close a database
(but leave Access open) using code?
I assume it's a DoCmd, but I'm not sure exactly what the
object is.
Again, forgive me for asking such a stupid question.
Thanks...

Application.CloseCurrentDatabase

--
*******************************
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
*******************************
 

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

Top