locked
f1 help RRS feed

  • Question

  • Hello, I created a ribbon and now have the "press f1 for help" in the screentip.  How can you remove this from the bottom of the screentip? Also, Is there a way to capture the f1 keypress throughout the database? I know this can be done on an individual form but would prefer a "global" event that open a pdf anytime f1 is pressed. Thanks.

    Saturday, October 26, 2013 7:43 AM

Answers

  • I don't know how you can get rid of the screentip, you may not be able to, but you can redirect F1 to call a custom help file.

    • Create a new Public Function as below in a public module.
    • Move your .pdf file to the same directory as your CurrentProject.Path directory.

    Public Function CustomHelp() As Boolean
    ChDir CurrentProject.Path
    Dim hwndHelp As Long
    hwndHelp = HtmlHelp(0, "FILENAME.pdf", HH_HELP_CONTEXTMENU, 0)
    End Function

    • Add the following command line to the code in your USysRibbons table.

    <command idMso="Help" enabled="true" onAction= "=CustomHelp()"/>

    I know this works for me using a custom .chm help file, don't know if works for a .pdf file but can see no reason why not.

    Saturday, October 26, 2013 4:55 PM

All replies

  • I don't know how you can get rid of the screentip, you may not be able to, but you can redirect F1 to call a custom help file.

    • Create a new Public Function as below in a public module.
    • Move your .pdf file to the same directory as your CurrentProject.Path directory.

    Public Function CustomHelp() As Boolean
    ChDir CurrentProject.Path
    Dim hwndHelp As Long
    hwndHelp = HtmlHelp(0, "FILENAME.pdf", HH_HELP_CONTEXTMENU, 0)
    End Function

    • Add the following command line to the code in your USysRibbons table.

    <command idMso="Help" enabled="true" onAction= "=CustomHelp()"/>

    I know this works for me using a custom .chm help file, don't know if works for a .pdf file but can see no reason why not.

    Saturday, October 26, 2013 4:55 PM
  • Thanks for the reply. It looks like you're adding another control to the ribbon that must be selected for the event to occur. I was hoping the user would be redirected to help (file, intranet) by both capturing the f1 keypress anytime while the database is running or selecting the "help" control from the ribbon which is what your reply suggests.  Unfortunately, its the F1 keypress that is eluding me.
    Saturday, October 26, 2013 7:15 PM
  • No, this is not another ribbon control. It redefines what happens when you click the blue question mark help icon in Access or press F1. It is my understanding that is what you wanted.
    Saturday, October 26, 2013 8:46 PM