Microsoft KB Archive/232393

= ACC97: " Is an Invalid Path" Error Message Caused by Truncated Folder Path =

Article ID: 232393

Article Last Modified on 1/24/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q232393



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

Moderate: Requires basic macro, coding, and interoperability skills.



SYMPTOMS
When you double-click a database file on a Novell NetWare-, a Microsoft Windows NT-, or Microsoft Windows 2000-based server, you may receive the following error message

is an invalid path.

and the path name that is mentioned in the message seems to be truncated.

-or-

If you double-click a shortcut to the file, Msaccess.exe opens, and then you receive the following error message:

\\ \ .mdb isn't a valid path. Make sure the pathname is spelled correctly and that you are connected to the server on which the file resides.



CAUSE
Quotation marks are missing from the application path that is used to start Microsoft Access. In the registry, the following key has an incorrect value:

HKEY_CLASSES_ROOT\Access.Application.8\shell\open\command

The value contains one of the following paths to Microsoft Access and some switches:

"C:\\Program Files\\Microsoft Office\\Office\\MSACCESS.EXE /NOSTARTUP \"\%1\""

-or-

"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE /NOSTARTUP "%1""

The problem occurs because the quotation marks are not placed properly around the application path to separate the path from the switches. This entry is created by the Msaccess.srg file, which is in the Msapps\Office\ folder.



RESOLUTION
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Resolution 1
On the client computer:  Click Start, and then click Run. In the Open box, type regedit, and then click OK. Click (Default) for the following key in the registry:

HKEY_CLASSES_ROOT\Access.Application.8\shell\open\command

 On the Edit menu, click Modify, and then in the Value data box, type one of the following values:

"\"C:\\Program Files\\Microsoft Office\\Office\\MSACCESS.EXE\" /NOSTARTUP \"%1\""

-or-

"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" /NOSTARTUP "%1"

This puts quotation marks around the application path and around the characters %1.

NOTE: The path to Msaccess.exe may be different on your system.

 Click OK. On the Registry menu, click Exit.</li></ol>

Resolution 2
Rebuild the file-type association for the .mdb file name extension. To do this, follow these steps:

NOTE: Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.

<ol> Double-click My Computer, and then click Folder Options on the View menu.</li> Click the File Types tab.</li> In the Registered file types list, click Microsoft Access Database.</li> Click Remove, and then click Yes.</li> Restart the computer.</li> After you restart the computer, double-click My Computer.</li> On the View menu, click Folder Options.</li> Click the File Types tab.</li> Click New Type.

Note that the Add New File Type dialog box opens.</li> In the Description of type box, type Microsoft Access Database .</li> Click New.

Note that the New Action dialog box opens.</li> In the Action box, type open .</li> Place the pointer in the Application used to perform action box, and then click Browse.</li> Move to the Msaccess.exe file.

Although you may have chosen to install the file elsewhere, the default path to the Msaccess.exe file is as follows:

C:\Program Files\MS Office\Office\Msaccess.exe

</li> Click Open, and then click OK to return to the Add File Type dialog box.</li> <li>Under Actions, click Open.</li> <li>Click OK four times to close all dialog boxes.</li></ol>

Additional query words: prb isn t

Keywords: kberrmsg kbprb KB232393

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.