ACC2000: Error Message When You Run SysCmd in an Access Project (214709)



The information in this article applies to:

  • Microsoft Access 2000

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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open an Access project.
  2. On the Tools menu, point to Macro, and then click Visual Basic Editor.
  3. If the Immediate window is not displayed, click Immediate Window on the View menu.
  4. Type the following line in the Immediate window, and then press ENTER:
    ?SysCmd (acSysCmdGetWorkgroupFile)
    					
Note that you receive the error message mentioned in "Symptoms" section of this article, and then Access quits.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kbpending kbProgramming KB214709