I created a custom help file (help.chm) for my application and I want to open it with F1.
The help file is located in the same folder as the Front End and of course needs to be
found regardless where the Front End is located.
So I need to get the full path to the front end and use that information in the
call to the help file.
In a module I created this function:
Next I created an autokeys macro:
Once the macro is saved it works like a charm.
Catalina
The help file is located in the same folder as the Front End and of course needs to be
found regardless where the Front End is located.
So I need to get the full path to the front end and use that information in the
call to the help file.
In a module I created this function:
Public Function helpfile()
Dim strSource As String
strSource = [CurrentProject].[path] & "\help.chm"
Call Shell("c:\Windows\hh.exe " & strSource, vbNormalFocus)
End Function
Next I created an autokeys macro:
Macro Name: {F1}
Action: runcode
Function Name: helpfile()
Once the macro is saved it works like a charm.
Catalina