Orjan wrote:
Does anybody have some code for opening a helpform by clicking F1 in
a field on an access form?
thank you.
Orjan
I presume you mean pressing F1 rather than clicking on a control.
Once I've created my help files I use this code in the load event;
Private Sub Form_Load()
Dim strHelpPath As String
strHelpPath = CurrentProject.Path & "\applicationhelp.hlp"
Me.HelpFile = strHelpPath
End Sub
Then I enter the id of the help topic I want to appear for the form in the
form's Help Context ID property. When the user hits F1 the topic appears.
For this to work the help files should be in the same location as the
database.