Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Mar 2001
    Location
    Colorado, USA
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to open a custom help file (Access 2K)

    How do I put an entry in the help menu to open a custom help file (winhelp95 format)? The file was created in Doc2Help. I am able to get the context-sensitive piece of it working, but the menu has me stumped.

    Thanks.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: How to open a custom help file (Access 2K)

    Create a function like this in a standard module (the type you create using Insert | Module in the Visual Basic Editor):

    Public Function OpenMyHelp()
    Shell "Winhlp32.exe C:AccessMyHelpFile.hlp", vbNormalFocus
    End Function

    Create a custom menu item. Right click it (while customizing) and select Properties. Enter the following in the On Action box:

    =OpenMyHelp()

  3. #3
    2 Star Lounger
    Join Date
    Mar 2001
    Location
    Colorado, USA
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to open a custom help file (Access 2K)

    Thanks for the quick answer. That was the ticket. I tried the Shell function, but I got it in my head that I needed extra quotes around the path and that didn't work.

    Thanks. again.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: How to open a custom help file (Access 2K)

    You would need extra quotes if the path or filename contained spaces. But to include spaces in a quoted string, you must double them:

    <code>Shell "Winhlp32.exe ""C:AccessMy Help File.hlp""", vbNormalFocus</code>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •