473,406 Members | 2,698 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,406 software developers and data experts.

Re: problems closing all (MS Access) processes

Jeff <jn*******@gmail.comwrote in
news:d8**********************************@d70g2000 hsc.googlegroups.com:
Ah - wups - \that was actually a problem with cutting and pasting code
only, not within the production module. Crap. Editing my
embarrassing naming conventions prior to posting, sorry.

Aside from "Option Explicit" (which is on prior to compile if not
Usenet), any other thoughts Chris?

Thanks,
Sheepish Jeff
If I had to guess I'd guess [as a one chance in a million] that your
criteria setting form includes at least one check box and that you
reference the control as in

If chkWhatever Then
SQL = SQL & " AND Whatever"
EndIf

In the olden days Access initialized an independent instance of a
checkbox control when its value was referenced without proper syntax:
chkWhatever.Value
and that instance never died.

Does this still hold? I don't know as I almost never use any object's
default property, preferring to control things myself through explicit
"dotting" rather than to be dependent on MS/Access's way of doing things,
which can be inconsistent.

The point of my [might be correct once in a million times guess] is that
the Access ghost could have been raised by many things; if you post your
code, someone may recognize what it is.

BTW, TTBOMK it has not been necessary to release DAO pointers since DAO
3.5. I never do and I never have ghosts. The ingestion of tomatoes is
fatal. No one who ate even one tomato in 1853 is still alive.

--
lyle fairfield
Oct 2 '08 #1
4 1603
"lyle fairfield" <ly******@yah00.cawrote
BTW, TTBOMK it has not been necessary to release
DAO pointers since DAO 3.5. I never do and I never
have ghosts.
The ingestion of tomatoes is fatal. No one who ate
even one tomato in 1853 is still alive.
But can you vouch that we don't have to contend with their ghosts?

I'd read a similar statement about people who drank water in that era; the
conclusion drawn was that you should only drink whiskey.

Larry
Oct 2 '08 #2
On Oct 1, 11:29*pm, lyle fairfield <lylef...@yah00.cawrote:
Jeff <jnorvi...@gmail.comwrote innews:d8**********************************@d70g20 00hsc.googlegroups.com:
Ah - wups - \that was actually a problem with cutting and pasting code
only, not within the production module. *Crap. *Editing my
embarrassing naming conventions prior to posting, sorry.
Aside from "Option Explicit" (which is on prior to compile if not
Usenet), any other thoughts Chris?
Thanks,
Sheepish Jeff

If I had to guess I'd guess [as a one chance in a million] that your
criteria setting form includes at least one check box and that you
reference the control as in

If chkWhatever Then
* * * * SQL = SQL & " AND Whatever"
EndIf

In the olden days Access initialized an independent instance of a
checkbox control when its value was referenced without proper syntax:
chkWhatever.Value
and that instance never died.

Does this still hold? I don't know as I almost never use any object's
default property, preferring to control things myself through explicit
"dotting" rather than to be dependent on MS/Access's way of doing things,
which can be inconsistent.

The point of my [might be correct once in a million times guess] is that
the Access ghost could have been raised by many things; if you post your
code, someone may recognize what it is.

BTW, TTBOMK it has not been necessary to release DAO pointers since DAO
3.5. I never do and I never have ghosts. The ingestion of tomatoes is
fatal. No one who ate even one tomato in 1853 is still alive.

--
lyle fairfield
Well done!

While I am using proper syntax in each of my calls to build the query,
my "reset" function assigned
.ckAnalyteGroupFilter = True
....instead of
.ckAnalyteGroupFilter.Value = True

I'll report back if ghosts come back, otherwise I feel exorcised.

Cheers,
Jeff
Oct 2 '08 #3
lyle fairfield <ly******@yah00.cawrote in
news:Xn**********************@216.221.81.119:
TTBOMK it has not been necessary to release DAO pointers since DAO
3.5.
That would be Access 97, and I've personally seen the "Access won't
close" problem and resolved it in Access 97 by cleaning up my object
variables.

Why would one change a programming practice that takes very little
time, is neat and orderly (i.e., explicitly cleans up every pointer
you've created in your code) and causes no harm?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Oct 3 '08 #4
"David W. Fenton" <XX*******@dfenton.com.invalidwrote in
news:Xn**********************************@74.209.1 36.89:
Why would one change a programming practice that takes very little
time, is neat and orderly (i.e., explicitly cleans up every pointer
you've created in your code) and causes no harm?
Arthritis.

--
lyle fairfield
Oct 3 '08 #5

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

Similar topics

4
by: PWright | last post by:
I have a runtime Access XP db that uses a Crystal Reports control (crystl32.ocx). The Crystal Reports are written in 8.5. The database shuts down fine unless a Crystal Report has been opened. ...
1
by: Tom Mitchell | last post by:
Hi: Having a problem with Access2000 running with Win2K. Occasionally, when I click on an MDB file from File Manager, Access opens hidden - i.e., there is no Access task in the Task Bar. The...
5
by: Simon Hart | last post by:
Does anyone know the standard code access permission to be able to manipulate a process using the Process class? Thanks Simon.
4
by: jg1130 | last post by:
Greetings all, Here's my problem... I've built a small Access database that I placed on my server. I have one workstation connected to the database. The folder that the database is in on...
4
by: rdemyan | last post by:
I'm using code from the following web page to open the API Browse Folder dialog http://www.mvps.org/access/api/api0002.htm It all works fine. But if the dialog box is open and the user closes...
2
by: rdemyan via AccessMonster.com | last post by:
I have a custom message form that I want to display when the user shuts down my app. Some clean up needs to be done during shutdown and I want to display this form and then display various...
2
by: Joe | last post by:
in my Class1 Form: Dim objPDFDistiller = CreateObject("PdfDistiller.PdfDistiller.1") in my Form1_FormClosed (main form that I am closing) ...
2
by: Wayne | last post by:
I'm experiencing the following intermittent problem with Access 2003 (Access 2000 file format) under Vista. Sometimes when I close a database by closing the database window I get the following...
7
by: bigukfan | last post by:
I have an application using multiple Forms, all unbound. The main Form enables users to select which other Forms they want to use, only one at a time, all Modal. I don't want users to close Access...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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
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...
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.