473,395 Members | 1,583 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,395 software developers and data experts.

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

' Open DB (with password)
Set DAODB = objAccessApp.DBEngine.OpenDataBase(DBPath, False, False,
";pwd=" & DBPassword)
objAccessApp.OpenCurrentDatabase DBPath, False
DAODB.Close
Set DAODB = Nothing
objAccessApp.DoCmd.RunMacro MacroName
objAccessApp.Visible = True
objAccessApp.DoCmd.Maximize
Nov 12 '05 #1
4 2611
On Mon, 03 May 2004 08:13:03 GMT, "Andrew Chanter"
<he****@radsolutions.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.com.

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

' Open DB (with password)
Set DAODB = objAccessApp.DBEngine.OpenDataBase(DBPath, False, False,
";pwd=" & DBPassword)
objAccessApp.OpenCurrentDatabase DBPath, False
DAODB.Close
Set DAODB = Nothing
objAccessApp.DoCmd.RunMacro MacroName
objAccessApp.Visible = True
objAccessApp.DoCmd.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.spam.cox.net> wrote in message
news:rn********************************@4ax.com...
On Mon, 03 May 2004 08:13:03 GMT, "Andrew Chanter"
<he****@radsolutions.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.com.

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

' Open DB (with password)
Set DAODB = objAccessApp.DBEngine.OpenDataBase(DBPath, False, False,
";pwd=" & DBPassword)
objAccessApp.OpenCurrentDatabase DBPath, False
DAODB.Close
Set DAODB = Nothing
objAccessApp.DoCmd.RunMacro MacroName
objAccessApp.Visible = True
objAccessApp.DoCmd.Maximize

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

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

-Tom.

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.spam.cox.net> wrote in message
news:rn********************************@4ax.com.. .
On Mon, 03 May 2004 08:13:03 GMT, "Andrew Chanter"
<he****@radsolutions.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.com.

-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.Application
>
>' Open DB (with password)
> Set DAODB = objAccessApp.DBEngine.OpenDataBase(DBPath, False, False,
>";pwd=" & DBPassword)
> objAccessApp.OpenCurrentDatabase DBPath, False
> DAODB.Close
> Set DAODB = Nothing
> objAccessApp.DoCmd.RunMacro MacroName
> objAccessApp.Visible = True
> objAccessApp.DoCmd.Maximize
>


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

objAccessApp.Quit
'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****@radsolutions.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.Application

' Open DB (with password)
Set DAODB = objAccessApp.DBEngine.OpenDataBase(DBPath, False, False,
";pwd=" & DBPassword)
objAccessApp.OpenCurrentDatabase DBPath, False
DAODB.Close
Set DAODB = Nothing
objAccessApp.DoCmd.RunMacro MacroName
objAccessApp.Visible = True
objAccessApp.DoCmd.Maximize

Nov 12 '05 #5

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

Similar topics

1
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...
41
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...
4
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
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...
15
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...
1
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
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
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,...
7
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...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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,...
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
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
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.