how to use html help files with access 2007 msgbox help button?

J

JohnnyRedneck

I am developing an Access 2007 application with a custom HTML help file...
called example.chm. I can fire this up nicely from within forms and by code
but I can't get it to work from the help button in a msgbox. This is an
example of a failed attempt, (I just get access 2007 help)...
Response = MsgBox("MyMessage", vbOKCancel + vbMsgBoxHelpButton +
vbInformation, "Message Title", "C:\example.chm", 6)
Where "C:\example.chm" is the help file and 6 the context. I've tried making
sure that the context is not referenced elsewhere on the underlying form...
but still no joy!
Can anybody please help me?
 
T

TWR

Johnny,
The function looks good to me. I used something like it to get a context
sensitive help topic to work in an Excel app that I'm currently working on.

Assuming that you are calling you help file using topicID's, I think your
problem may be in the compiled .chm file. Have you tried using the topicID
6, as in your example below, elsewhere in you app where it works with a
different topicID? This would test to ensure that there is a topicID of 6 in
the help file. If you used HTML Help Workshop to create the help file, you
can text your topicID's from there.
 
J

JohnnyRedneck

Thanks TWR, The same context ID works fine elsewhere. I made the help file
with Helpmatic Pro which so far has given me no problems. I have asked them
and will post the solution if any.
 

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