MOD2000: Command-Line Error When Opening a Run-Time Database (236557)
The information in this article applies to:
- Microsoft Office 2000 Developer
- Microsoft Access 2000
This article was previously published under Q236557 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
When you try to run a Microsoft Access run-time application, you may receive the following error message:
The command line you used to start Microsoft Access contains an option that Microsoft Access doesn't recognize.
Exit and restart Microsoft Access using valid command-line options.
When you click OK, the message is repeated once. When you click OK again, you receive the following error message:
Can't find the database file '.mdb.'
Make sure you entered the correct file and path name.
When you click OK again, the application quits.
CAUSE
The Access database that you included in the run-time application has a name that has one or more spaces. Spaces cause the path to be rendered incorrectly during the setup process.
RESOLUTION
To resolve this problem, obtain Microsoft Office 2000 Developer Service Release 1 (SR-1).
To obtain SR-1, click the article number below to view the article in the Microsoft Knowledge Base:
253566 MOD2000: How to Obtain and Install Microsoft Office 2000 Developer Service Release 1 (SR-1)
To prevent this behavior, do not package Access databases that have one or more spaces in their names.
To correct any shortcuts already deployed, follow these steps:
-
Right-click the Windows taskbar.
-
On the shortcut menu, click Properties.
- In the Taskbar Properties dialog box, click the Start Menu Programs tab, and then click Advanced. Note that Windows Explorer opens.
-
In Windows Explorer, click the Programs folder.
-
In the Programs folder, double-click the folder for your run-time application. Note that the shortcut for the application appears.
-
Click to highlight the shortcut, and on the File menu, click Properties.
-
Click the Shortcut tab, and in the Target box, type the correct path to Access and to your database, for example:
"C:\Program Files\Microsoft Office\ART\Office\MSACCESS.EXE" "C:\Program Files\My Northwind\My Northwind.mdb"
-
Click OK.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Office 2000 Developer SR-1.
Modification Type: | Minor | Last Reviewed: | 7/14/2004 |
---|
Keywords: | kbbug kberrmsg kbPDWizard kbpending KB236557 |
---|
|