D
Dan Bair
Hi;
I'm still trying to run some code that opens my help file
from a module. I'm getting the following message:
"Microsoft Access can't find the
name '<<strHelpFileName>>' you entered in the expression.
The code in the module was given to me by Dave and looks
like this:
--------------------------------------------------------
Option Compare Database
Public Const HELP_CONTEXT = &H1
Declare Sub WinHelp Lib "user32" _
Alias "WinHelpA" ( _
ByVal hWnd As Long, _
ByVal lpHelpFile As String, _
ByVal wCommand As Long, _
ByVal dwData As Any)
Function OpenHelpWithContextID(ByVal strHelpFileName As _
String, lngContextID As Long)
WinHelp Application.hWndAccessApp, ByVal
strHelpFileName, _
HELP_CONTEXT, ByVal lngContextID
End Function
-------------------------------------------------------
I am executing this code from a macro. I would like to
have 'strHelpFileName' contain "Project.hlp" and
lngContextID = 1000, but I'm not sure where to assign
these values in the code.
Help,
Dan
I'm still trying to run some code that opens my help file
from a module. I'm getting the following message:
"Microsoft Access can't find the
name '<<strHelpFileName>>' you entered in the expression.
The code in the module was given to me by Dave and looks
like this:
--------------------------------------------------------
Option Compare Database
Public Const HELP_CONTEXT = &H1
Declare Sub WinHelp Lib "user32" _
Alias "WinHelpA" ( _
ByVal hWnd As Long, _
ByVal lpHelpFile As String, _
ByVal wCommand As Long, _
ByVal dwData As Any)
Function OpenHelpWithContextID(ByVal strHelpFileName As _
String, lngContextID As Long)
WinHelp Application.hWndAccessApp, ByVal
strHelpFileName, _
HELP_CONTEXT, ByVal lngContextID
End Function
-------------------------------------------------------
I am executing this code from a macro. I would like to
have 'strHelpFileName' contain "Project.hlp" and
lngContextID = 1000, but I'm not sure where to assign
these values in the code.
Help,
Dan