Microsoft KB Archive/214709

= ACC2000: Error Message When You Run SysCmd in an Access Project =

Article ID: 214709

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q214709



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

This article applies only to a Microsoft Access project (.adp).



SYMPTOMS
When you try to run the Visual Basic for Applications method SysCmd with acSysCmdGetWorkgroupFile as the action, you may receive the following error message, and then Access quits:

In Microsoft Windows 95 or Microsoft Windows 98:

This program has performed an illegal operation and will be shut down.

If the problem persists, contact the program vendor.

When you click Details (on Microsoft Windows Millennium Edition, press ALT+D), you receive the following message:

MSACCESS caused an invalid page fault in MSACCESS.EXE at 0137:303093eb.

NOTE: The actual memory address may vary.

In Microsoft Windows NT or Microsoft Windows 2000:

MSACCESS.exe has generated errors and will be closed by Windows. You will need to restart the program.

An Error log is being created.



CAUSE
You are trying to run SysCmd(acSysCmdGetWorkgroupFile) in a Microsoft Access project.



RESOLUTION
Run the SysCmd method with acSysCmdGetWorkgroupFile as the action from an Access database (.mdb).

NOTE: Even if the error did not occur, the method would not return the name of the workgroup file because Access projects do not use Microsoft Jet.



STATUS
Microsoft has confirmed that this is a problem in Access 2000.



Steps to Reproduce Behavior
 Open an Access project. On the Tools menu, point to Macro, and then click Visual Basic Editor. If the Immediate window is not displayed, click Immediate Window on the View menu.  Type the following line in the Immediate window, and then press ENTER: ?SysCmd (acSysCmdGetWorkgroupFile) </ol>

Note that you receive the error message mentioned in "Symptoms" section of this article, and then Access quits.

Additional query words: pra ipf msaccess exe

Keywords: kbbug kbpending kbprogramming KB214709

-

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

© Microsoft Corporation. All rights reserved.