Open webpage help from custom popmenu

The Stoat

The Grim Squeaker
Local time
Today, 23:14
Joined
May 26, 2004
Messages
239
Hi all,

I've created some test html help pages for my app. I want to allow the user to right hand mouse click on my custom popup menu and jump to the webpage that contains the help for that particular control.

I.e. if they RHMC on the Enter Password button it will show them the open internet address menu [can do this part :p ] with the specific hyperlink for that buttons help [ can't do this bit :( ]. Is there some way of doing this?

Thanks

The Stoat
 
Hello,

Found a nice way of creating HTML help files without the need for a help compiler.

Basically;

1. Create an .htm(l) file relating to the object/control that you want to display the help for. You can do this in anything from dreamweaver to notepad.

2. Place the files in a folder called HELP in the same folder as the database i.e c:\mydatabase\help

3. Create a function in a module as follows

Code:
Public Function GetHelpPages() As String
Dim StrActiveLink As String ' Create variable

' Currentproject.PATH is in Access 200X not '97. Gets the path of the database
' "\HELP\" is the folder with your helpfiles
' Screen.ActiveControl.Tag is the tag property of the current control. So if
' you right hand click on a cmdbutton this will be the activecontrol 
' What you need to do is enter the last part of the path to the helpfile so
' for my database i have a login form so i have created a Login folder in my
' help folder and a webpage in there called Enter.Htm
' so the tag property has Login\Enter.Htm in it

StrActiveLink = CurrentProject.PATH & "\HELP\" & Screen.ActiveControl.Tag

' This opens the webpage C:\mydatabase\help\Login\Enter.Htm
Application.FollowHyperlink StrActiveLink


3. Create a popup menu and in the On Action property enter =GetHelpPages()

4. On the controls you want help files displayed for go the properties and in the shortcut menu bar property enter the name of your menu

When you right mouse click on this control the menu will appear and if you click on it, it will open the web page.

You can obviously be as creative with the webpages as you like :D

Hope that is of some interest.

The Stoat
 

Users who are viewing this thread

Back
Top Bottom