Access Not Closing

B

Bruce

I am using a button on my main switchboard form to close
the database and Access. While my application always
closes, sometimes Access does not. When this happens, you
have to go to windows task manager to get Access to
close. I am using DoCmd.Quit on
the buttons on-click event. This is a secured Access 97
application located on a shared network drive. A shortcut
is used to open the application and the workgroup file,
and I think this is what is causing the problem
(ie "C:Office\MSAccess.exe" "G:\Databases\MyApp.mdb" /wrkgr
p "G:\Databases\MyApp.mdw"). Also, how can I open the
database exclusivly in this senario? Create a seperate
shortcut with an "open exclusive" switch?
 
L

Lynn Trapp

It is likely that there is some object that you created and did not
eliminate. Make sure you set all objects to Nothing in you code.
 
J

Joan Wild

See my response to your previous message on this i.e.'Problem Closing
Secured Application'
 
J

Joan Wild

Hi Bruce,

Bruce said:
I am using a button on my main switchboard form to close
the database and Access. While my application always
closes, sometimes Access does not. When this happens, you
have to go to windows task manager to get Access to
close.

Check out
http://www.mvps.org/access/bugs/bugs0005.htm
A shortcut
is used to open the application and reference the
workgroup file
(ie "C:Office\MSAccess.exe" "G:\Databases\MyApp.mdb" /wrkgr
p "G:\Databases\MyApp.mdw"). Also, how can I open the
database exclusivly in this senario? Create a seperate
shortcut with an "open exclusive" switch?

That is one way.
 
B

Bruce

Thanks alot Joan, unfortunetly I have not had time to go
through my code because I have been looking through the
great site you sent me!
 
J

Joan Wild

You can use Edit, Find to locate 'Set' statements throughout your mdb; and
then check that you have Set = nothing. Using the same find you can search
for checkbox references.

Of course, I won't apologize for sending you to a great resource!
 

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