N
Nandini
I created autokeys macro to open "MyHelpForm" through F1 key or shortcut
menu. For this I have created a table having 3 fields 'FormName' , 'CtrlName'
and 'HelpText'. In the standard module I wrote following code:
Public Function OpenMyHelpForm()
Dim frmCurrentForm As Form
Set frmCurrentForm = Screen.ActiveForm
Dim ctlCurrentControl As Control
Set ctlCurrentControl = Screen.ActiveControl
Dim strWhere as String
strWhere = "FormName= '" & frmCurrentForm.[Name] & _
"' AND CtrlName = '" & ctlCurrentControl.[Name] & "'"
DoCmd.OpenForm "MyHelpForm", , , strWhere
End Function
MyHelpForm is opened after pressing F1 and it shows only the record having
both the fields (FormName and CtrlName). But it dosent show the records
having only one field (FormName). I used Access 2003. Anybody can help me
anyway? I dont have much more knowledge
about visual basic codes.
Early response would be appreciated.
With best regards,
menu. For this I have created a table having 3 fields 'FormName' , 'CtrlName'
and 'HelpText'. In the standard module I wrote following code:
Public Function OpenMyHelpForm()
Dim frmCurrentForm As Form
Set frmCurrentForm = Screen.ActiveForm
Dim ctlCurrentControl As Control
Set ctlCurrentControl = Screen.ActiveControl
Dim strWhere as String
strWhere = "FormName= '" & frmCurrentForm.[Name] & _
"' AND CtrlName = '" & ctlCurrentControl.[Name] & "'"
DoCmd.OpenForm "MyHelpForm", , , strWhere
End Function
MyHelpForm is opened after pressing F1 and it shows only the record having
both the fields (FormName and CtrlName). But it dosent show the records
having only one field (FormName). I used Access 2003. Anybody can help me
anyway? I dont have much more knowledge
about visual basic codes.
Early response would be appreciated.
With best regards,