PC Review


Reply
Thread Tools Rate Thread

Access 2003 won't close

 
 
=?Utf-8?B?U3RlcGhlbiBCdWxs?=
Guest
Posts: n/a
 
      28th Mar 2006
I have a database recently ported from Access 2.0, now running in Access 2003
under Windows XP.
It is driven from a form with a number of buttons on it.
One of these is "Quit Access", with the code Application.Quit acQuitSaveNone.
Another is "Close database", with the code Application.CloseCurrentDatabase.

Both succeed in closing the database, but often Access stays open. Access
is then impossible to close without killing the task via the Task Manager.

Can anyone suggest what's going on here?
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      28th Mar 2006
Access will not close if some object is not releasing memory.

There could be many places to look for a problem of this kind. You need to
explicitly close everything you open, set your objects to Nothing, and
de-instantiate any classes you create. For example, if you OpenRecordset in
code, you need to close it again with:
rs.Close
Set rs = Nothing
and you need to ensure that this code executes even an error handler changes
the flow of the procedure.

It would also be worth repairing the database, such as the steps for the
first symptom in this article:
http://allenbrowne.com/ser-47.html


--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Stephen Bull" <(E-Mail Removed)> wrote in message
news:4A919DC8-CE7F-4E9A-A7FD-(E-Mail Removed)...
>I have a database recently ported from Access 2.0, now running in Access
>2003
> under Windows XP.
> It is driven from a form with a number of buttons on it.
> One of these is "Quit Access", with the code Application.Quit
> acQuitSaveNone.
> Another is "Close database", with the code
> Application.CloseCurrentDatabase.
>
> Both succeed in closing the database, but often Access stays open. Access
> is then impossible to close without killing the task via the Task Manager.
>
> Can anyone suggest what's going on here?



 
Reply With Quote
 
david epsom dot com dot au
Guest
Posts: n/a
 
      29th Mar 2006
You need to look for code like
If chkBox then

and change it to
If chkBox = true then

(david)

"Stephen Bull" <(E-Mail Removed)> wrote in message
news:4A919DC8-CE7F-4E9A-A7FD-(E-Mail Removed)...
>I have a database recently ported from Access 2.0, now running in Access
>2003
> under Windows XP.
> It is driven from a form with a number of buttons on it.
> One of these is "Quit Access", with the code Application.Quit
> acQuitSaveNone.
> Another is "Close database", with the code
> Application.CloseCurrentDatabase.
>
> Both succeed in closing the database, but often Access stays open. Access
> is then impossible to close without killing the task via the Task Manager.
>
> Can anyone suggest what's going on here?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Application Close Button in Access 2003 KenR Microsoft Access VBA Modules 5 5th Sep 2008 08:15 PM
cannot access outlook 2003 after I close it =?Utf-8?B?c2N1YmFkaXZlcg==?= Microsoft Outlook Discussion 2 12th May 2007 11:57 AM
hide the close button in Access 2003 =?Utf-8?B?YmFydHk=?= Microsoft Access 3 1st Feb 2007 06:31 PM
Cannot close MS Access 2003 john_lyons@aapt.net.au Microsoft Access Forms 1 9th Aug 2006 12:27 PM
Close button on Access 2003 Roy Goldhammer Microsoft Access Form Coding 0 17th Jan 2005 09:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:44 PM.