Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Location
    Wimbledon, SW London, UK
    Posts
    19

    Getting field-context help, from a Help table

    I have a form (frmBooks) with several fields, one of which is an unbound textbox (txtHelpText).

    As each field in the form gets the focus, the text in txtHelpText changes to show relevant help. At the moment this is done through the OnFocus event code.

    This makes it difficult to edit the help text as it means hunting through the code.

    I'd like to have a table (tblHelpText) with two fields (ID & HelpText). Then as each field on frmBooks gets the focus, have the contents of txtHelpText pick up the relevant data from [tblHelpText].[HelpText].



    Only problem is, i've no idea how to go about it. I'm only vba beginner really.

    Thanks in advance.

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    What you can do is to put the help text in the Tag property of the control then when the control gets the focus you pass this string to the help text control.
    Me.HelpText = Me.ActiveControl.Tag

    David

  3. #3
    Join Date
    Nov 2009
    Location
    Wimbledon, SW London, UK
    Posts
    19
    Quote Originally Posted by dcrake View Post
    What you can do is to put the help text in the Tag property of the control then when the control gets the focus you pass this string to the help text control.
    Me.HelpText = Me.ActiveControl.Tag

    David
    Yes i looked at something like this, but the help is often several lines long (with line breaks and examples). I really want to be able to edit the helptext in a table (through a form).

  4. #4
    Join Date
    Nov 2009
    Location
    Wimbledon, SW London, UK
    Posts
    19
    Not really solved as such, but found an alternative. I've used HelpMaker to actually make a .hlp help file.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-03-2009, 02:01 PM
  2. Programming a result field in a table
    By Linda in forum Programming
    Replies: 9
    Last Post: 07-13-2009, 08:07 PM
  3. Replies: 5
    Last Post: 03-31-2009, 09:16 PM
  4. Updating Table field from Form
    By Kunuk in forum Access
    Replies: 0
    Last Post: 02-26-2009, 11:41 PM
  5. how to update only one field in 1 table?
    By viccop in forum Access
    Replies: 3
    Last Post: 02-21-2009, 02:32 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