Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Cannot double-click on an Access Database to open

Posted on 2004-11-01
Medium Priority
Last Modified: 2010-05-18
On a Windows XP machine all patched, I had previously installed Access 97 with Office 2000 Pro.  Could not double click to open a database, but can open access and open the the database from there.  Error message I receive is "The command line you used to start Microsoft Access contains an option that Microsoft Access does not recognize"  Exit and restart Microsoft Access using valid command-line options.  If you click on that a couple of times this error comes up, "Microsoft Access can't find the database file c:\documents.mdb make sure you entered the correct path and filename"  I uninstall Access 97 and 2000 and reinstall 2000 only same problem, upgraded to Office XP, same problem.  Help!!!!
Question by:tnstech
  • 2
  • 2

Accepted Solution

mydatabaseguy earned 1500 total points
ID: 12465718

First I would right click on the access mdb file and click properties. Make sure the Open With is set to Microsoft Access.

If it is set correctly then I do not know...

maybe try clicking start-> control panel-> folder options

In the folder options select the 'file types' tab... scroll down to MDB and click advanced.

The only advice I can give here is what my system says (I am running Office XP on Windows XP)
I have 2 action entries.. one says New and one says Open

In the 'Application used to perform the action' box I have
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP /n "%1"

(I really do not know what the options /nostartup /n "%1" mean... I would google Access command line options)

If you are running Access 97 on a machine running Office XP (without Access) maybe make sure the link is to your version of Access... IE C:\Program Files\Microsoft Office\Office97\MSACCESS.EXE"

Again, I am just taking stabs at the problem.

My settings also have DDE enabled.

If you installed Access 97 and Access XP on the same machine you may have even more problems.

Hope this helps you in the right direction.


Author Comment

ID: 12467791
Thank you mydbguy.  Corrected the file association, but I think it may be a little more than that.  

I noticed under the Windows profile in application data that there was not a section for Access under Microsoft.  So  I copied a folder in from another machine.  I can now right mouse click on the file and select Open with...which will work.   But still cannot double click on the file to open, same error as before.   Also, /nostartup stops that help pane from coming up.   could not find anything on the /n or %1

Expert Comment

ID: 12468515
Does this problem only occur on a single MDB or any MDB on the machine?

I found one thing regarding your error on microsoft but it has to do with password protected databases...

here is the link:

Have you installed all available updates for Office?

Good luck.
LVL 58

Expert Comment

ID: 12470951
"Access can't find the database file c:\documents.mdb"

This is typical for missing quotes around %1 in the file association commands for Open. Without quotes, you will have:
    <start ms access> <options> C:\Documents and Settings\UserName\Desktop\My New Database.mdb
Access will look for "C:\Documents" and fail.
If you add the quotes around %1 (which will be replaced by the long version of the file name), it will work.

This bug happened frequently before the 2000 versions, in several apps.


Author Comment

ID: 12472740
Yes this happens on any database you try to open, all patches are applied.  I will check the quotes around the %1 and let you know.  Thank you!

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question