A
Adrian
Access 2000
I am developing a Help System for our database and have the following code
in a module to get the HelpcontextID. Here is the part that gets the ID:
-------------
Dim curForm As Form
Dim FormHelpId As Long
'Set the curForm variable to the currently active form.
Set curForm = Screen.ActiveForm
FormHelpId = 1001
If curForm.ActiveControl.Properties("HelpcontextId") > 0 Then 'There is a
HelpcontextId for the control so get this
FormHelpId = curForm.ActiveControl.Properties("HelpcontextId")
Else
If curForm.HelpContextId > 0 Then 'There is a HelpcontextId for the
form
FormHelpId = curForm.HelpContextId
End If
End If
-------------
How can I get the HelpcontextIF for the active tabbed page on the active
form? The above code gets the HelpcontextID for the active control if there
is an ID, and if not gets the form ID.
Thanks for any help.
Adrain.
I am developing a Help System for our database and have the following code
in a module to get the HelpcontextID. Here is the part that gets the ID:
-------------
Dim curForm As Form
Dim FormHelpId As Long
'Set the curForm variable to the currently active form.
Set curForm = Screen.ActiveForm
FormHelpId = 1001
If curForm.ActiveControl.Properties("HelpcontextId") > 0 Then 'There is a
HelpcontextId for the control so get this
FormHelpId = curForm.ActiveControl.Properties("HelpcontextId")
Else
If curForm.HelpContextId > 0 Then 'There is a HelpcontextId for the
form
FormHelpId = curForm.HelpContextId
End If
End If
-------------
How can I get the HelpcontextIF for the active tabbed page on the active
form? The above code gets the HelpcontextID for the active control if there
is an ID, and if not gets the form ID.
Thanks for any help.
Adrain.