I want to add a Help Context ID value to a Form during the Open event. I know I can change the Visible property on the Open Eventand it is retained by the Form. Can this be done? ANy Help would be appreciated.
I want to add a Help Context ID value to a Form during the Open event. I know I can change the Visible property on the Open Eventand it is retained by the Form. Can this be done? ANy Help would be appreciated.
I have no idea what you are asking![]()
I have a form with one of the properties (see list of properties on any Form in Design mode) and you will see "Help context ID" which is called "helpcontextID". I want to add a value to that Help ContextID value using VBA code . Is this possible ? or is this property available only in Design mode? For example:
Me.helpcontextID = intID where intID is Dim intID as Integer.
are you talking about the context menu that appears if you hover over a field on a form? Or are you talking about creating a right click context menu (other other context menu) that actually pops up in another window?
Sorry but no menu's involved. There is a property of a From called "help Context ID" and is used in some Help systems. I want to , when a Form event occurs, input a value into the property "HelpContextID" if possible. I know I can do it "manually" but I want to do a one time loop through all the forms and add a value to this property. I would like to write " Me.HelpcontextID = intHelpID" Is this possible?
You have the help file(s) already created?
If you have the help context ID number, then Yes, you should be able to use VBA to loop through the forms collection and modify the "HelpContextID" property.
If I understand the process correctly, you should also have a control "HelpContextID" property for the controls that you want to provide help info on.
It would NOT use "ME." in the code.
I have thought about using the Help Compiler to create a help file (CHM) for my dBs, but have not gotten around to it (more like I have not taken the time to learn how to do this).
I have tried to input a value into the Form.Help Context ID AKA "HelpContextID"property with verified values (Msgbox/debug.print etc incl Watch values) and it doesn't give me an error but when you view the fsame form in Design mode the Help Context ID property it shows Zero (0) not the 1220 value I wanted inserted. Is this a Read Only Poperty when Form running? Can I put a form in Design mode on the fly and thne change the Help Context ID value there?You have the help file(s) already created?
If you have the help context ID number, then Yes, you should be able to use VBA to loop through the forms collection and modify the "HelpContextID" property.
If I understand the process correctly, you should also have a control "HelpContextID" property for the controls that you want to provide help info on.
It would NOT use "ME." in the code.
I have thought about using the Help Compiler to create a help file (CHM) for my dBs, but have not gotten around to it (more like I have not taken the time to learn how to do this).
No, the help context ID number can be changed (I changed it in design view), but you have to have the correct ID number. From what I understand, there is a help compiler that provided the number to you. You just can't put in any number you want.
Google "Help compiler"
Again, I haven't tried this before, but I read about it a year or so ago.
Steve thanks for the quick reply. I don't believe that you can't change the Help Context ID as I have done so but only if I open the form and type in a number any number, my example used1220 just to enter some number. I have no Help files as I gave up trying to get help to work I have devised a simple method using the Help Context ID to display Help info to you user/ Primitive but it works but it is tedious to enter a value imanually so I wanted to do it using VBA. I am now thinking of using the Tag property as I am giving up on the HCI. Thanks for the effort and time.No, the help context ID number can be changed (I changed it in design view), but you have to have the correct ID number. From what I understand, there is a help compiler that provided the number to you. You just can't put in any number you want.
Google "Help compiler"
Again, I haven't tried this before, but I read about it a year or so ago.