The built-in facilities for context sensitive help always look in an external help file. It would take a lot of work on your part to simulate context sensitive help in your own code, and it would never work quite the same; you can't trap the F1 key, for example. I don't think saving your help topics in the database file is a reasonable goal. Rick Sprague
Can't you trap the {F1} key using the "VBKeyF1" keycode constant? I haven't tried, but I have used some of the other keycode constants built into Access.
In theory, you could use this constant to trap the keystroke, open a form with your help information, and then return to your form.
Lightning, I'm not sure how you were thinking of trapping the F1 key. I know you can't trap it with a Form's KeyPress or KeyDown event--Access insists on responding to it. I think I once trapped it with an AutoKeys macro, back in Access 2, but it's tough to figure out the context if you do that (it would take a HUGE If...Then or Select Case statement, with a separate condition for each control of each form!) Rick Sprague
Yes, I was thinking of trapping it with the keypress event. As I said, I haven't tried. I wasn't aware that the event wouldn't trap it. Thanks for the info.
"If you learn something every day, the day is not wasted!!"
I deffinitly CANNOT help with help sites. I can however hope you do find some place, and are willing to share the info. I have gotten A HTML help file built, but only with general info on my topic(s). I do NOT see/understand HOW to relate a control to a specific entry (e.g. the ContextID property). I have posted this question in the VB forum several times - to no avail.
MichaelRed
redmsp@erols.com
There is never time to do it right but there is always time to do it over
I don't know any tutorial sites, and I've never written an HTML help myself (just WinHelp, and minor ones at that). I've often thought somebody ought to write a book about it; there's a lot more than technical skills to learn. Organizing hypertext documents is something of an art.
Tek-Tips has an HTML help forum that might be of interest to you: Microsoft: HTML Help authoring system. Rick Sprague
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.