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