HTML Help File Question

B

BobV

Group:

I made a compiled help file using the HTML Help Workshop, but I can't figure
out how to call it from my Access 2002 application. I have copied the
compiled help file (called Depr Calc Help.chm) file to the same folder as my
application. For the Switchboard form I have set the Help File property to
Depr Calc Help.chm, and I have set the Help Context ID to 1000.

When F1 is pressed, I get the error message: "HH_HELP_CONTEXT called
without a [MAP] section."

I think the problem is in my header file that I set from within the HTML
Help Workshop. My header file is as follows:
#define IDH_symbolicID 1000

I know that I am supposed to substitute something for the word symbolicID in
the header, but I don't know what that should be so that it will relate to
the Switchboard form of my Access 2002 application.

Are there any books that explain how to use the HTML Help Workshop to add a
help file to a Microsoft Access application?

Any help will be greatly appreciated.

Thanks,
BobV
 
P

Pete Lees [MVP]

Bob,
...When F1 is pressed, I get the error message:
"HH_HELP_CONTEXT called without a [MAP] section."

If you haven't already done so, you'll need to set up an [ALIAS]
section in your help project that associates the topic IDs with the
equivalent topic files. See these pages for more information:

http://mvps.org/htmlhelpcenter/htmlhelp/hhtutorials.html#mapping
http://helpware.net/htmlhelp/how_to_context.htm
Are there any books that explain how to use the HTML Help Workshop to
add a help file to a Microsoft Access application?

No books that I'm aware of, but we've listed quite a number of Web
pages on the subject in the MS Help Wiki at:

http://www.mshelpwiki.com/index.php?page=HTMLHelpArticles
 
B

BobV

Pete:

Thanks for the quick reply. I'll check out the websites you suggested.

I had another thought on the subject. Suppose I just want to write a macro
that executes when a user presses the F1 key that opens the help file. What
would the VBA statement be to open a .chm file? (My .chm file is called
"Depr Calc Help.chm.")

Thanks,
BobV


Pete Lees said:
Bob,
...When F1 is pressed, I get the error message:
"HH_HELP_CONTEXT called without a [MAP] section."

If you haven't already done so, you'll need to set up an [ALIAS]
section in your help project that associates the topic IDs with the
equivalent topic files. See these pages for more information:

http://mvps.org/htmlhelpcenter/htmlhelp/hhtutorials.html#mapping
http://helpware.net/htmlhelp/how_to_context.htm
Are there any books that explain how to use the HTML Help Workshop to
add a help file to a Microsoft Access application?

No books that I'm aware of, but we've listed quite a number of Web
pages on the subject in the MS Help Wiki at:

http://www.mshelpwiki.com/index.php?page=HTMLHelpArticles
 
P

Pete Lees [MVP]

Bob,
Suppose I just want to write a macro that executes when a user
presses the F1 key that opens the help file. What would the
VBA statement be to open a .chm file? (My .chm file is called
"Depr Calc Help.chm.")

You may want to look at Paul O'Rear's HelpAPI VBA module, available
from here:

http://www.helpfulsolutions.com

This contains all the declarations and helper functions for the HTML
Help API that you'll need. If you were to use the HH_DISPLAY_TOPIC
command rather than HH_HELP_CONTEXT, you could avoid using context
integers and topic IDs altogether. (HH_DISPLAY_TOPIC passes a topic
file name rather than a context integer to the help file.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top