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

  • Thread starter Thread starter JohnnyRedneck
  • Start date Start date
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?
 
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.
 
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.
 
Back
Top