473,700 Members | 2,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application.Qui t Problem with Access2000

Running Access2000 ADP Project/MSDE on Windows XP...
- I Open my Access ADP project.
In the Windows Task Manager Processes window MSACCESS.EXE shows
up.
- I don't do anything else in Access.
- I click a toolbar button that executes the code: application.qui t in
a module in my Acesss project.
- My Access project closes.
Now there are TWO instances of MSACCESS.EXE showing up in the
Windows Task Manager Processes window, my cursor is flashing on the
windows desktop, and every few seconds a third MSACCESS.EXE instance
shows up (very briefly) in the Windows Task Manager Processes window.

I have checked this with the StepInto Debugger and the MSACCESS.EXE
processes only show up after execution of the Application.Qui t
command.

This problem does not occur when I hit Exit in the MS Access window.

Any help is greatly appreciated.
lq
Nov 12 '05 #1
2 4939
Lauren, try replacing:
Application.Qui t
with:
DoCmd.Quit

IIRC, I saw someone with a similar problem recently and that solved it.

--
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.

"Lauren Quantrell" <la************ *@hotmail.com> wrote in message
news:47******** *************** ***@posting.goo gle.com...
Running Access2000 ADP Project/MSDE on Windows XP...
- I Open my Access ADP project.
In the Windows Task Manager Processes window MSACCESS.EXE shows
up.
- I don't do anything else in Access.
- I click a toolbar button that executes the code: application.qui t in
a module in my Acesss project.
- My Access project closes.
Now there are TWO instances of MSACCESS.EXE showing up in the
Windows Task Manager Processes window, my cursor is flashing on the
windows desktop, and every few seconds a third MSACCESS.EXE instance
shows up (very briefly) in the Windows Task Manager Processes window.

I have checked this with the StepInto Debugger and the MSACCESS.EXE
processes only show up after execution of the Application.Qui t
command.

This problem does not occur when I hit Exit in the MS Access window.

Any help is greatly appreciated.
lq

Nov 12 '05 #2
Thanks. That did it. Never again: Application.Qui t!
lq

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message news:<3f******* *************** @freenews.iinet .net.au>...
Lauren, try replacing:
Application.Qui t
with:
DoCmd.Quit

IIRC, I saw someone with a similar problem recently and that solved it.

--
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.

"Lauren Quantrell" <la************ *@hotmail.com> wrote in message
news:47******** *************** ***@posting.goo gle.com...
Running Access2000 ADP Project/MSDE on Windows XP...
- I Open my Access ADP project.
In the Windows Task Manager Processes window MSACCESS.EXE shows
up.
- I don't do anything else in Access.
- I click a toolbar button that executes the code: application.qui t in
a module in my Acesss project.
- My Access project closes.
Now there are TWO instances of MSACCESS.EXE showing up in the
Windows Task Manager Processes window, my cursor is flashing on the
windows desktop, and every few seconds a third MSACCESS.EXE instance
shows up (very briefly) in the Windows Task Manager Processes window.

I have checked this with the StepInto Debugger and the MSACCESS.EXE
processes only show up after execution of the Application.Qui t
command.

This problem does not occur when I hit Exit in the MS Access window.

Any help is greatly appreciated.
lq

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
13572
by: The Roys | last post by:
Hi Im doing something wrong in quitting the Word.Application in my VB program. I have General Declarations Dim AppWord As Word.Application Form_Load() Set AppWord = CreateObject("Word.Application")
3
2031
by: downwitch | last post by:
Greetings, I have an application which has recently gone from being one big piece of front-end code to being three, i.e. an mdb A that references an mda B and an mda C. (For what it's worth, in the interest of complete disclosure, mda B also references mda C). This application has always closed in the mvps time-honored method of calling Application.Quit on the Unload event of the switchboard.
6
5292
by: Max | last post by:
I have the following code on a form that launches Microsoft Outlook and creates a new email message for the user: Outlook.Application oApp = new Outlook.Application(); Outlook.MailItem oMail = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem); oMail.HTMLBody = "SOME HTML TEXT HERE"; oMail.Display(oApp); oMail.Close(Outlook.OlInspectorClose.olDiscard);
6
5732
by: Peter Kleiweg | last post by:
I have an application written in Tkinter. There is a menu item 'quit' that calls the function 'quit'. If 'quit' is called, it first checks if there is unsaved data. If there is, it won't let the application exit unless you confirm to disregard the changes. So far, so good. I want the program to behave identical if the 'close' button of the application window is clicked. I tried the code below,
0
1326
by: jorgedec | last post by:
I'm trying to use Office's FileSearch object to search for files. I'm using Visual Studio 2002 c# and Word 2000. The problem I am having is realeasing the Word.Application object. When I try to use the Quit() method I get an error: "Microsoft Word for Windows has encountered a problem and needs to close. We are sorry for the inconvenience" Either way I end up with multiple WinWord processes running.
0
3990
by: Alan T | last post by:
I tried to close the word document object and word application: private Interop.Word.Application WordApp; private Interop.Word.Document WordDoc; // close word and quit word application WordDoc.Close(ref _newMissing, ref _newMissing, ref _newMissing); WordApp.Application.Quit(ref _notTrue, ref _newMissing, ref _newMissing);
3
4156
by: rdemyan via AccessMonster.com | last post by:
Sometimes users (including myself) accidentally click on the application close icon in the application menu bar when they meant to just click on the 'X' for the form. Of course the app closes and this is very annoying. So, I added a messagebox to my hidden StartAppForm in the Unload event. Now when the application closes the user is presented with a message so they can abort closing in case they don't really want to close. This has been...
2
11448
by: Alan T | last post by:
private Interop.Word.Application _wordApp; What is the differences betwenn _wordApp.Quit(...) and _wordApp.Application.Quit(...) ?
9
21389
by: Andy | last post by:
Just noticed something interesting in the above. If you have your program file set to "Compact on Close" in access 2007 (which is desirable when you have a larger program that frequently needs compacting), if you use the following code on an "Exit Application" type button, the compacting on close won't fire: Application.Quit acQuitSaveNone however, if you use:
0
8644
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9214
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8970
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7807
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5902
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4403
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3088
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2392
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2027
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.