Prev: "Exit Access" Code
Next: Scrolling in VBA module
From: Dennis on 1 Apr 2010 11:44 Jack, How did you capture the F1 function key (help key) for help or did you do something else? Dennis
From: Jack Leach dymondjack at hot mail dot on 1 Apr 2010 14:21 ahhhhh... F1! I used a button on all my forms to open the help page, but I think if you go to the Form's KeyDown event, you can capture F1 (I'm not exactly sure how to reference that particular key, but some testing should give an answer). Private Sub KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = <F1 code> Then KeyCode = 0 DoCmd.OpenForm frmHelp etc etc End If End Sub that might get you started anyway... -- Jack Leach www.tristatemachine.com "I haven''t failed, I''ve found ten thousand ways that don''t work." -Thomas Edison (1847-1931) "Dennis" wrote: > Jack, > > How did you capture the F1 function key (help key) for help or did you do > something else? > > Dennis
From: Jack Leach dymondjack at hot mail dot on 1 Apr 2010 14:28 http://msdn.microsoft.com/en-us/library/aa211398(office.11).aspx vbKeyF1 should do it, according to the above article. I believe you will also need to change the KeyPreview property of the Form to Yes in order to get this to work at a Form level rather than Control level... hth -- Jack Leach www.tristatemachine.com "I haven''t failed, I''ve found ten thousand ways that don''t work." -Thomas Edison (1847-1931) "Jack Leach" wrote: > ahhhhh... F1! I used a button on all my forms to open the help page, but I > think if you go to the Form's KeyDown event, you can capture F1 (I'm not > exactly sure how to reference that particular key, but some testing should > give an answer). > > Private Sub KeyDown(KeyCode As Integer, Shift As Integer) > If KeyCode = <F1 code> Then > KeyCode = 0 > DoCmd.OpenForm frmHelp etc etc > End If > End Sub > > that might get you started anyway... > > -- > Jack Leach > www.tristatemachine.com > > "I haven''t failed, I''ve found ten thousand ways that don''t work." > -Thomas Edison (1847-1931) > > > > "Dennis" wrote: > > > Jack, > > > > How did you capture the F1 function key (help key) for help or did you do > > something else? > > > > Dennis
From: Douglas J. Steele on 1 Apr 2010 15:04 You can also create an AutoKeys macro and map F1 to call a function. -- Doug Steele, Microsoft Access MVP http://www.AccessMVP.com/DJSteele (no e-mails, please!) "Jack Leach" <dymondjack at hot mail dot com> wrote in message news:1180E0A1-0110-437D-98F8-1B56D8CCBF72(a)microsoft.com... > ahhhhh... F1! I used a button on all my forms to open the help page, but > I > think if you go to the Form's KeyDown event, you can capture F1 (I'm not > exactly sure how to reference that particular key, but some testing should > give an answer). > > Private Sub KeyDown(KeyCode As Integer, Shift As Integer) > If KeyCode = <F1 code> Then > KeyCode = 0 > DoCmd.OpenForm frmHelp etc etc > End If > End Sub > > that might get you started anyway... > > -- > Jack Leach > www.tristatemachine.com > > "I haven''t failed, I''ve found ten thousand ways that don''t work." > -Thomas Edison (1847-1931) > > > > "Dennis" wrote: > >> Jack, >> >> How did you capture the F1 function key (help key) for help or did you do >> something else? >> >> Dennis
From: Stuart McCall on 1 Apr 2010 16:11
"Dennis" <Dennis(a)discussions.microsoft.com> wrote in message news:9FB4B709-D7C4-489D-8A2C-01D0A2C4B0BB(a)microsoft.com... > Hi, > > I'm running Access via Office XP Pro and Office 2007 on XP, Vista, and 7. > > I'm getting pretty close to completing the first Access application I've > been working on and figured I need to address the Help documentationi > issue. > > I don't know much about how to create a Help file nor the terminology. So > my question is pretty broad and may be phrased incorectly. > > Where would I start? > Any suggestions for a Help compiler? > > Or is there another way to accomplish creating on-line user help for my > application? > > Dennis If you're comfortable writing simple HTML, you could create a .htm file for each topic, ie: Question1.htm Question2.htm etc. Then to display say Question2's help: Application.FollowHyperlink strPathToHtmFiles & "\Question2.htm" With HTML you can easily include some fancy formatting, also hyperlinks to other help topics, either embedded in the text or in a list of 'Related Topics'. |