473,625 Members | 3,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Shell/Instance wont quit

I have a VB app that has a routine that runs macros in a (password
protected) Access 97 db. (I have attached the code below.) Most of these
macros end up opening a form in the Access db for the user to interract
with.When the user finishes in the Access session they quit and are returned
to the VB app. Problem is that in many cases, when the user quits the
Access session, an Access 'shell' remains in the taskbar that cannot be
removed except by calling the task manager. This problem is compounded the
more times the user calls the macro. This seems to be some kind of bug as
it does not occur all the time. If the user clicks a button with the code
Docmd.Quit to exit the Access session, they are left with the shell. If
they instead click the x button at the top right of their screen, most of
the time the shell unloads - but not always.

Any suggestions???

PS the method of opening the password protected db for interraction is a
result of trawling user groups and is not the source of the problem as this
used to occur before the db was protected.

Dim DAODB As dao.Database
Dim objAccessApp As Access.Applicat ion

' Open DB (with password)
Set DAODB = objAccessApp.DB Engine.OpenData Base(DBPath, False, False,
";pwd=" & DBPassword)
objAccessApp.Op enCurrentDataba se DBPath, False
DAODB.Close
Set DAODB = Nothing
objAccessApp.Do Cmd.RunMacro MacroName
objAccessApp.Vi sible = True
objAccessApp.Do Cmd.Maximize
Nov 12 '05 #1
4 2627
On Mon, 03 May 2004 08:13:03 GMT, "Andrew Chanter"
<he****@radsolu tions.com.au> wrote:

Seems your problem is that the Access instance doesn't quit, which
most likely has nothing to do with how you launched it. This is a FAQ.
You should have no trouble finding help at groups.google.c om.

-Tom.

I have a VB app that has a routine that runs macros in a (password
protected) Access 97 db. (I have attached the code below.) Most of these
macros end up opening a form in the Access db for the user to interract
with.When the user finishes in the Access session they quit and are returned
to the VB app. Problem is that in many cases, when the user quits the
Access session, an Access 'shell' remains in the taskbar that cannot be
removed except by calling the task manager. This problem is compounded the
more times the user calls the macro. This seems to be some kind of bug as
it does not occur all the time. If the user clicks a button with the code
Docmd.Quit to exit the Access session, they are left with the shell. If
they instead click the x button at the top right of their screen, most of
the time the shell unloads - but not always.

Any suggestions???

PS the method of opening the password protected db for interraction is a
result of trawling user groups and is not the source of the problem as this
used to occur before the db was protected.

Dim DAODB As dao.Database
Dim objAccessApp As Access.Applicat ion

' Open DB (with password)
Set DAODB = objAccessApp.DB Engine.OpenData Base(DBPath, False, False,
";pwd=" & DBPassword)
objAccessApp.Op enCurrentDataba se DBPath, False
DAODB.Close
Set DAODB = Nothing
objAccessApp.Do Cmd.RunMacro MacroName
objAccessApp.Vi sible = True
objAccessApp.Do Cmd.Maximize


Nov 12 '05 #2
This is an FAQ (Frequently Asked Question)

Unfortunately it is not a WAQ (Well Answered Question.)

I have found multiple references on Google to others having similar
difficulty (mainly with Excel) but no tip that solves the problem or
explains why it happens.
I have taken on board all suggestions from the groups but to no avail. If
you can provide a link to a thread I would be appreciative.
"Tom van Stiphout" <to*****@no.spa m.cox.net> wrote in message
news:rn******** *************** *********@4ax.c om...
On Mon, 03 May 2004 08:13:03 GMT, "Andrew Chanter"
<he****@radsolu tions.com.au> wrote:

Seems your problem is that the Access instance doesn't quit, which
most likely has nothing to do with how you launched it. This is a FAQ.
You should have no trouble finding help at groups.google.c om.

-Tom.

I have a VB app that has a routine that runs macros in a (password
protected) Access 97 db. (I have attached the code below.) Most of thesemacros end up opening a form in the Access db for the user to interract
with.When the user finishes in the Access session they quit and are returnedto the VB app. Problem is that in many cases, when the user quits the
Access session, an Access 'shell' remains in the taskbar that cannot be
removed except by calling the task manager. This problem is compounded themore times the user calls the macro. This seems to be some kind of bug asit does not occur all the time. If the user clicks a button with the codeDocmd.Quit to exit the Access session, they are left with the shell. If
they instead click the x button at the top right of their screen, most of
the time the shell unloads - but not always.

Any suggestions???

PS the method of opening the password protected db for interraction is a
result of trawling user groups and is not the source of the problem as thisused to occur before the db was protected.

Dim DAODB As dao.Database
Dim objAccessApp As Access.Applicat ion

' Open DB (with password)
Set DAODB = objAccessApp.DB Engine.OpenData Base(DBPath, False, False,
";pwd=" & DBPassword)
objAccessApp.Op enCurrentDataba se DBPath, False
DAODB.Close
Set DAODB = Nothing
objAccessApp.Do Cmd.RunMacro MacroName
objAccessApp.Vi sible = True
objAccessApp.Do Cmd.Maximize

Nov 12 '05 #3
On Mon, 03 May 2004 23:26:03 GMT, "Andrew Chanter"
<he****@radsolu tions.com.au> wrote:

http://www.mvps.org/access/bugs/bugs0005.htm

-Tom.

This is an FAQ (Frequently Asked Question)

Unfortunatel y it is not a WAQ (Well Answered Question.)

I have found multiple references on Google to others having similar
difficulty (mainly with Excel) but no tip that solves the problem or
explains why it happens.
I have taken on board all suggestions from the groups but to no avail. If
you can provide a link to a thread I would be appreciative.
"Tom van Stiphout" <to*****@no.spa m.cox.net> wrote in message
news:rn******* *************** **********@4ax. com...
On Mon, 03 May 2004 08:13:03 GMT, "Andrew Chanter"
<he****@radsolu tions.com.au> wrote:

Seems your problem is that the Access instance doesn't quit, which
most likely has nothing to do with how you launched it. This is a FAQ.
You should have no trouble finding help at groups.google.c om.

-Tom.

>I have a VB app that has a routine that runs macros in a (password
>protected) Access 97 db. (I have attached the code below.) Most ofthese >macros end up opening a form in the Access db for the user to interract
>with.When the user finishes in the Access session they quit and arereturned >to the VB app. Problem is that in many cases, when the user quits the
>Access session, an Access 'shell' remains in the taskbar that cannot be
>removed except by calling the task manager. This problem is compoundedthe >more times the user calls the macro. This seems to be some kind of bugas >it does not occur all the time. If the user clicks a button with thecode >Docmd.Quit to exit the Access session, they are left with the shell. If
>they instead click the x button at the top right of their screen, most of
>the time the shell unloads - but not always.
>
>Any suggestions???
>
>PS the method of opening the password protected db for interraction is a
>result of trawling user groups and is not the source of the problem asthis >used to occur before the db was protected.
>
>
>
>Dim DAODB As dao.Database
>Dim objAccessApp As Access.Applicat ion
>
>' Open DB (with password)
> Set DAODB = objAccessApp.DB Engine.OpenData Base(DBPath, False, False,
>";pwd=" & DBPassword)
> objAccessApp.Op enCurrentDataba se DBPath, False
> DAODB.Close
> Set DAODB = Nothing
> objAccessApp.Do Cmd.RunMacro MacroName
> objAccessApp.Vi sible = True
> objAccessApp.Do Cmd.Maximize
>


Nov 12 '05 #4
Well at some point in the code I would have expected to see

objAccessApp.Qu it
'and
Set objAccessApp = Nothing
When automating an application it is very common that the application does
not quit just because the object variable goes out of scope.

--
Terry Kreft
MVP Microsoft Access
"Andrew Chanter" <he****@radsolu tions.com.au> wrote in message
news:ja******** *******@news-server.bigpond. net.au...
I have a VB app that has a routine that runs macros in a (password
protected) Access 97 db. (I have attached the code below.) Most of these
macros end up opening a form in the Access db for the user to interract
with.When the user finishes in the Access session they quit and are returned to the VB app. Problem is that in many cases, when the user quits the
Access session, an Access 'shell' remains in the taskbar that cannot be
removed except by calling the task manager. This problem is compounded the more times the user calls the macro. This seems to be some kind of bug as
it does not occur all the time. If the user clicks a button with the code
Docmd.Quit to exit the Access session, they are left with the shell. If
they instead click the x button at the top right of their screen, most of
the time the shell unloads - but not always.

Any suggestions???

PS the method of opening the password protected db for interraction is a
result of trawling user groups and is not the source of the problem as this used to occur before the db was protected.

Dim DAODB As dao.Database
Dim objAccessApp As Access.Applicat ion

' Open DB (with password)
Set DAODB = objAccessApp.DB Engine.OpenData Base(DBPath, False, False,
";pwd=" & DBPassword)
objAccessApp.Op enCurrentDataba se DBPath, False
DAODB.Close
Set DAODB = Nothing
objAccessApp.Do Cmd.RunMacro MacroName
objAccessApp.Vi sible = True
objAccessApp.Do Cmd.Maximize

Nov 12 '05 #5

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

Similar topics

1
651
by: David Conorozzo | last post by:
I create a new Access.Application instance. As soon as I refernce the property "References", I am unable to issue a truly successful quit on that instance. By that I mean the call to quit is fine but if you look in task manager, the instance is still running. Furthermore, if you opened a database using that instance, you will not be able to open it until you quit the entire application or until you kill that process. BTW, the process is...
41
6080
by: Ruby Tuesday | last post by:
Hi, I was wondering if expert can give me some lite to convert my word table into access database. Note: within each cell of my word table(s), some has multi-line data in it. In addition, there is one row containing picture(s) as well. So far, what I did is doing it manually for each word docs I have. Select Table Convert Table to Text(I use ^ character for delimiter)
4
2457
by: Lauren Quantrell | last post by:
If an Access2K ade is running, say it's named app1.ade, and I open app2.ade, I want app2.ade to determine if app1.ade is running, and if it is, I want app2.ade to close app1.ade. Is this easy? lq
4
445
by: Andrew Chanter | last post by:
I have a VB app that has a routine that runs macros in a (password protected) Access 97 db. (I have attached the code below.) Most of these macros end up opening a form in the Access db for the user to interract with.When the user finishes in the Access session they quit and are returned to the VB app. Problem is that in many cases, when the user quits the Access session, an Access 'shell' remains in the taskbar that cannot be removed...
15
13290
by: Mark C | last post by:
All, I have exhaustingly been looking through the newsgroups in search of a way to systemically output an Access 97 report to a pdf file using the full version of Adobe Acrobat. I want the user to be able to click a button and have the Access report saved as a pdf in a directory specified by me the programmer. I have seen a posting by John Baker promoting a web-sight that has an mde that one can reference in any database but after 30...
1
1444
by: David | last post by:
Does anyone know how to run MS Access reports from VB.net. I'd like to keep the existing reports in the database if I can. Thanks David
3
6470
by: Tony A. | last post by:
I'm in the process of migrating a MS Access 2003 application to VB .Net (2005). How can I run the reports in Access from the VB application? -- Tony
16
6510
by: JoeW | last post by:
I'm utilizing a database that I created within MS Access within a program I've created in VB.NET. I am using the VB front end to navigate the information, but want to be able to print a report, that I've also created within MS Access. I've attempted using the Access.Application instance, but I get errors when it tries to load the database. Just wondering if anyone has any experience with this, and what I should do. Thanks for any...
7
6032
by: farhaaad | last post by:
Hi everybody, I just wanted to know if i can make a form in excel (the same as access forms), so when i enter data in excel form it goes to a table in access ? I mean when i enter a value in a cell linked to access table, it goes to table and when i enter another value in the same cell the value goes to the next record. I thank you people in advance!
0
8253
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8189
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
8692
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...
0
8635
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8497
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7182
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
4089
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...
0
4192
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
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

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.