Double-click to Open .mdb annoyance

R

Rich K

Recently when I've been working on .mdb files double clicking directly on the
file does not open the file in access, yet the .ldb file is created. I can
open Access first and then the file, but it's a royal pain. If I try to open
the file by double clicking first and it does not open, I end up having to
reboot the machine so that I can open the file exclusively to edit it. Does
anybody have any resolution to this issue?

I work on the same machine with .adp files and they do not seem to have this
issue.

I'm using Access 2003 SP3 w/ Windows XP SP 3
 
D

Douglas J. Steele

Rather than rebooting the machine, try opening the Task Manager.

Look first on the Applications tab, just in case your database is open
there. (Try the "Switch To" button if it is). Failing that, look on the
Processes tab for an instance of MSACCESS.EXE and end it.
 
R

Rich K

Douglas,
Thanks for the tip. It resolves the issue of having to reboot. Still not
sure why the mdb isn't opening the first time. I develop .adp on the same
machine, could that have any bearing on the problem?
 
R

Rich K

Douglas,
I think I figured out the issue. I exit the database with a docmd.quit
behind a command button on a form. This closes the database but keeps the
process msaccess.exe is still running, which is probably interferring with
the next start up.

A quick search has revealed others have had the issue also. Is there a
process for quitting an application (.adp) and also ending the msaccess.exe
process?

Thanks,
Rich
 
D

Douglas J. Steele

Does Application.Quit work?

Note that the Quit method takes one of the following arguments as a
parameter:

acSaveYes (Default) Saves all objects without displaying a dialog box.
acPrompt Displays a dialog box that asks whether you want to save any
database
objects that have been changed but not saved.
acExit Quits Microsoft Access without saving any objects.

Note that this refers to changes to database objects (i.e. Forms, Reports,
Macros, Modules, etc), not to changes to data.
 
R

Rich K

No, I tried both the Application.Quit and the Docmd.Quit with various
arguments and yet the msaccess.exe process continues to run in the
background.

This has turned into a totally different problem than I originally posted,
and more important than I thought. I don't like the idea of leaving
unintended processes running on client computers eating up resources.

Rich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top