HTML Help usage by Access

  • Thread starter Thread starter Savvoulidis Iordanis
  • Start date Start date
S

Savvoulidis Iordanis

Access 2000, Win2000

I have created a HTML help file through Windows HTML Help Workshop.
How can I call it from Access to open a specific topic?
The HTML Help documentation, is for C language. Trying to translate it for
VBA, I got the message : 453: Can;t find DLL entry point HTMLHelpA in user32

Which is the correct usage ?
 
It didn't work. I still get the same message:
453: Can;t find DLL entry point HTMLHelpA in hhctrl.ocx

I use the following:

Public Const HH_DISPLAY_TOPIC = &H0
Public Const HH_DISPLAY_TOC = &H1
Public Const HH_DISPLAY_INDEX = &H2
Public Const HH_DISPLAY_SEARCH = &H3
Public Const HH_HELP_CONTEXT = &HF

Public Declare Function HTMLHelp Lib "hhctrl.ocx" Alias "HTMLHelpA" (ByVal
hwndCaller As Long, ByVal pszFile As String, ByVal uCommand As Long, ByVal
dword As Long) As Long

Private Sub Command0_Click()

HTMLHelp Me.hwnd, Me.HelpFile, HH_HELP_CONTEXT, Me.HelpContextID

End Sub
 
Savvoulidis,
I have created a HTML help file through Windows HTML Help Workshop.
How can I call it from Access to open a specific topic?

Here are a few resources that should help:

Microsoft, "Adding Help to Your Custom Solution":
<http://www.microsoft.com/resources/documentation/office/2000/all/solution/en-us/part2/ch13.mspx>

eHelp, Sample Access Application and Help File:
<http://www.helpcommunity.ehelp.com/robohelp/downloads/htmlhelp/>

Indigoware, "How to add Context-Sensitive Help to Access VBA
applications":
<http://www.indigoware.com/developers/access_help.htm>

Helpful Solutions, HelpAPI VBA module:
<http://www.helpfulsolutions.com/>
 
Great references. I finally managed to include help in my app!
I had no problem calling the proper functions in my code.

The only problem I found out, is when i set the CHM help file and Context Id
on my forms,
after pressing F1, there are two independent help windows actually opened
(one is empty with grey background with the title "Microsoft Access Help",
and the other one is my own CHM help file). I have to close both in order to
stop displaying help.

What am I doing wrong?
 
Back
Top