473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

A2K Application.Quit won't - reference MDA libraries

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.

Problem is, now the db closes (the ldb on the back end disappears), but
Access doesn't shut down, and the ldbs on all three front-end projects
are still there.

Before you answer, please consider that
* DoCmd.Quit doesn't do any better, and none of the arguments change
the outcome
* I've read every thread on this forum containing the words
"application" and "quit", to no avail--which hopefully means there's an
easy answer!
* The two-three references to "quit" "access" in the MSKB don't apply
* I am explicitly closing every object reference prior to invoking said
quit method

So I guess I'm asking, can anyone tell me how to "close" an mda
reference in such a way that the Application will Quit? Or is there
something else I've missed, and I'm asking the wrong question?

Thanks for your time & consideration.

Nov 13 '05 #1
3 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What version of Access? There was a reported bug about "unable to close
Access" in which one of the solutions was to ensure that all checks of
Boolean values and CheckBoxes be changed from this:

If BooleanVariable Then ...

or

If CheckBox Then ...

To this:

If BooleanVariable = True Then ...

or

If CheckBox = True Then ...

Also, make sure the DoCmd.Quit is in the .mdb file not in the .mda
files.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQnAFHIechKqOuFEgEQK5NQCfWzIzpRRF23XRhsQ84fx8lV GPISYAoIMw
6tLGi+SE9gNutVgTTu2ns8IG
=vqzx
-----END PGP SIGNATURE-----
downwitch wrote:
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.

Problem is, now the db closes (the ldb on the back end disappears), but
Access doesn't shut down, and the ldbs on all three front-end projects
are still there.

Before you answer, please consider that
* DoCmd.Quit doesn't do any better, and none of the arguments change
the outcome
* I've read every thread on this forum containing the words
"application" and "quit", to no avail--which hopefully means there's an
easy answer!
* The two-three references to "quit" "access" in the MSKB don't apply
* I am explicitly closing every object reference prior to invoking said
quit method

So I guess I'm asking, can anyone tell me how to "close" an mda
reference in such a way that the Application will Quit? Or is there
something else I've missed, and I'm asking the wrong question?

Thanks for your time & consideration.

Nov 13 '05 #2
It's Access 2000 (in the thread title). And yes, I saw that bug--an
Access 97 bug--but that's not the problem. And no, the quit call is in
the principal mdb.

Thanks for taking a shot, anyway.

I've checked and rechecked all my references, stepped through code, and
managed to make Access drop the ldb on the mdb front-end file, but it's
still holding on to the other two, and therefore not closing.

Very, very frustrating. I'll keep at it though...

Nov 13 '05 #3
Just a follow-up for anyone else who may read this now or forever...

I still haven't found a way to get rid of the locking files on mda
libraries. But by converting them to mde files--annoying
mid-development, but otherwise harmless--Access magically quits. So
it's a solid workaround.

Nov 13 '05 #4

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

Similar topics

2
by: Sibylle Koczian | last post by:
Still trying to learn PyQt from a book about several Python GUI toolkits, I seem to learn first what doesn't work. The following small script seems to work, but after closing the window I get the...
6
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...
6
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...
3
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...
7
by: Jay | last post by:
In my C# code, I'm attempting to display a message box then quit the win form application I'm writing if a certain type of error occurs when the application starts up. In the main form's...
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
9
NeoPa
by: NeoPa | last post by:
In VBA (I expect VB would be similar) controlling another Office Application (Automation) can be done using the following steps : Ensure the Reference (VBA Window / Tools / References) has been...
1
by: =?Utf-8?B?VGFvZ2U=?= | last post by:
Hi All, When I use applcation.exit() in winForm application, the form closed, but the process is still going!! ( The debug process is still running if debug in VS IDE). Environment.Exit(0) works...
9
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.