Either use the
/Wrkgrp switch in the shortcut to point to a workgroup file or include a
Jet subkey in the custom profile that points to a workgroup file.
Note You must also make sure that the
Everyone and the
TERMINAL SERVER USER groups have full permission on the
HKEY_CLASSES_ROOT\TypeLib\{4AFFC9A0-5F99-101B-AF4E-00AA003F0F07}\9.0
registry key. To do so, follow these steps:
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.
- On the Start menu, click
Run.
- In the Run box, type
Regedt32, and then click OK.
- In Registry Editor, locate the
following registry key:
HKEY_CLASSES_ROOT\TypeLib\{4AFFC9A0-5F99-101B-AF4E-00AA003F0F07}\9.0
- On the Security menu, click
Permissions.
- In the Permissions for 9.0 dialog box,
under Security, locate the Everyone and the TERMINAL SERVER USER groups and verify that both of them have full
control.
Note If the Everyone and the TERMINAL SERVER USER groups do not exist , add both the groups, and then provide them
full control. - Click OK, and then exit the
Registry Editor.
Use the /Wrkgrp Switch to Specify a Workgroup File
The easiest approach to resolve the problem is to include a
/Wrkgrp switch in the shortcut that points to a valid workgroup file. For
example, create a shortcut on the desktop with the following
command-line.
NOTE: The paths to Msaccess.exe and the System.mdw file may be
different on your computer. Make sure the paths in your shortcut accurately
reflect the location of Msaccess.exe and System.mdw on your computer.
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" /Wrkgrp "C:\MyApplication\System.mdw" /Profile Test
For additional information about using command-line switches
with Microsoft Access, click the article number below to view the article in
the Microsoft Knowledge Base:
209207 ACC2000: How to Use Command-Line Switches in Microsoft Access
For
additional information about writing macros and switches for shortcuts in the
Package and Deploy Wizard, click the article number below to view the article
in the Microsoft Knowledge Base:
236519 MOD2000: How to Write Macros and Switches for Shortcuts in the Package and Deployment Wizard
Include a Jet Subkey in Your Custom Profile
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.
To create a Jet subkey in your custom profile to
specify the path to the workgroup file, follow these steps:
- Create a custom profile and a shortcut by following the
steps in the "Creating a Custom Profile to Use with Microsoft Access" section
later in this article.
- In Registry Editor, locate the following key:
HKEY_LOCAL_MACHINE\Software\Test\MyApp\1.0
- Create the following subkeys to create the following key:
HKEY_LOCAL_MACHINE\Software\Test\MyApp\1.0\Jet\4.0\Engines
- Under the subkey Engines, create the following string value:
- Set the value of the SystemDB string value to the path of your workgroup file, for example,
C:\Workgroup\System.mdw
NOTE: If your application requires any other Jet-specific
modifications, such as loading the installable ISAMs, you must create the
appropriate subkeys or values (or both) under the Jet key of your custom
profile.