How to programmatically close an Access Database

D

Dom

Could anyone tell me how to close an access database
programmatically?
I tried DoCmd.Quit, but it doesn't do anything.
 
D

Dirk Goldgar

Dom said:
Could anyone tell me how to close an access database
programmatically?
I tried DoCmd.Quit, but it doesn't do anything.

It should, if executed from within the Access application you want to
close. Are you trying to close the current Access application, or
another instance of Access to which you've gotten an object reference,
or are you trying to close a Database object that you've opened using
OpenDatabase, or what? Maybe you should show your code, in context.
 

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