Results 1 to 9 of 9
  1. #1
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124

    AddingForms Help Contest ID value when the Form Open Event Occurs


    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.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I have no idea what you are asking

  3. #3
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124

    Help Context Idea property on Form

    Quote Originally Posted by rpeare View Post
    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.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    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?

  5. #5
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124
    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?

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    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).

  7. #7
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124
    Quote Originally Posted by ssanfu View Post
    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?

  8. #8
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    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.

  9. #9
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124
    Quote Originally Posted by ssanfu View Post
    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.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 04-05-2013, 03:42 PM
  2. Replies: 4
    Last Post: 10-06-2012, 04:45 AM
  3. Query-Display next time an event occurs
    By younggunnaz69 in forum Queries
    Replies: 2
    Last Post: 10-23-2011, 05:08 PM
  4. On Open form event not working
    By SPE_NY in forum Forms
    Replies: 2
    Last Post: 10-05-2011, 11:53 AM
  5. Replies: 3
    Last Post: 09-02-2011, 01:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums