You can create Compressed HTML Help files (.chm) by using HTML Help Workshop included with Microsoft Office XP Developer.
This article demonstrates how to create a simple HTML Help file in HTML Help Workshop, and then how to use the Help file in a Microsoft Access form. The Help file uses context IDs to display different Help topics, depending on where you insert the pointer and click in the form.
The method of creating Help files presented here requires HTML Help Workshop. You can install it from the Microsoft Office XP Developer CD-ROM.
To create this sample HTML Help file, follow these steps:
Create two HTML files: one for the form and one for the control.
Create a map file to define the context IDs.
Create an alias file that associates each topic ID with a topic.
Compile these files in HTML Help Workshop into a single compressed HTML file (*.chm).
Add the path to the HelpFile property of a sample form.
Assign context IDs to the form and to a control on the form.
Test the form.
The result is a form in which you can press F1 while in a particular text box to receive a Help topic specific to this text box. When you press F1 anywhere else on the form, the form-specific Help topic is displayed.
Note that the topic for the form appears. This is because the Field1 control does not have an associated topic and therefore it defaults to the general form topic.
Close the Help topic.
Click the Field2 control, and then press F1.
Note that the topic for the Field2 control is displayed.
For more information about creating header files, click Microsoft HTML Help Workshop Help on the
Help menu, type header files in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.