Microsoft KB Archive/243051

= MOD2000: AppHelpFile Run-Time Option Does Not Work =

Article ID: 243051

Article Last Modified on 6/11/2002

-

APPLIES TO


 * Microsoft Office 2000 Developer Edition

-



This article was previously published under Q243051



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



SYMPTOMS
After you set up a profile to use a specific Help file in your Microsoft Access run-time application and then try to open the Help file in your application, you receive the following error message:

The selected item is customized and doesn't have context-sensitive Help.

For more information on creating custom Help for a form, report, or control, click Help.



CAUSE
Access 2000 run-time applications do not recognize the AppHelpFile option.



RESOLUTION
For other ways to display a Help file, please see the following article in the Microsoft Knowledge Base:

209843 ACC2000: How to Programmatically Display a Help File



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior
The following steps take you through creating an Access run-time application, installing it on another computer, and then modifying the registry on that computer.  CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.

 In Access, open the sample database Northwind.mdb. On the Tools menu, point to Macro, and then click Visual Basic Editor. On the Add-Ins menu, click Package and Deployment Wizard.

If the Package and Deployment Wizard is not available, please see the following article in the Microsoft Knowledge Base to load the wizard.

236143 MOD2000: How to Start the Package and Deployment Wizard

 In the Package and Deployment Wizard, click Package.</li> Click Next on each page and accept the defaults until you see the page named Package and Deployment Wizard - Included Files.</li> Click to select the Include Access Runtime check box, and then click Next.

NOTE: If you are asked for the location of the Access Runtime, insert the Microsoft Office 2000 developer CD, and browse to the following file:

\ODETools\v9\AccessRT\Data1.msi

</li> Continue clicking Next in the wizard, accepting the defaults, and then click Finish.</li> Install the Access run-time package on another computer.</li> After installing the package on the other computer, click Start, and then click Run. 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.

</li> Type Regedit, and then click OK. The Registry Editor starts.</li> In the Registry Editor, expand the tree to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT

</li> Add the following subkeys there:

ACCESS RUNTIME\9.0\Profiles\MyCorp

to create the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\ACCESS RUNTIME\9.0\Profiles\MyCorp

</li> Browse to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT

</li> Create the following subkeys:

\MyCorp\1.0\Run-Time Options

to create the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\MyCorp\1.0\Run-Time Options

</li> Under the subkey Run-Time Options, create the following string value:

AppHelpFile

</li> Set the value of the AppHelpFile string value to C:\Windows\Help\Calc.hlp.

NOTE: Depending on the operating system that is running on the computer that you install your application to or the version of Windows Calculator on your computer, the Help file may be named Calc.chm or may exist in a different folder. Check to verify the name and the location of the file.</li> Quit the Registry Editor.</li> On the desktop, create a shortcut with the following command line. NOTE: The path to Msaccess.exe and to Northwind.mdb may be different on your computer. If you need to, make changes to the paths.

"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" /Profile "MyCorp" "C:\Program Files\Microsoft Office\Office\Samples\Northwind.MDB"

</li> Click the shortcut that you just created to run Access.</li> <li>On the Help menu, click MyCorp Help, or Press F1.</li></ol>

Note that you receive the error message mentioned in the "Symptoms" section of this article.

<div class="references_section">