Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Forms

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-15-2009, 08:03 PM
James3mc James3mc is offline Windows Vista Access 2007 (version 12.0)
Novice
 
Join Date: Nov 2009
Location: Wimbledon, SW London, UK
Posts: 19
James3mc is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 11-16-2009, 01:56 AM
dcrake's Avatar
dcrake dcrake is offline Windows XP Access 2003 (version 11.0)
Expert
 
Join Date: Aug 2009
Posts: 438
Blog Entries: 1
dcrake is on a distinguished road
Default

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
__________________
www.xcraftlimited.co.uk The Home of Simple Software Solutions.
Reply With Quote
  #3  
Old 11-16-2009, 07:34 AM
James3mc James3mc is offline Windows Vista Access 2007 (version 12.0)
Novice
 
Join Date: Nov 2009
Location: Wimbledon, SW London, UK
Posts: 19
James3mc is on a distinguished road
Default

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).
Reply With Quote
  #4  
Old 11-28-2009, 08:21 PM
James3mc James3mc is offline Windows Vista Access 2007 (version 12.0)
Novice
 
Join Date: Nov 2009
Location: Wimbledon, SW London, UK
Posts: 19
James3mc is on a distinguished road
Default

Not really solved as such, but found an alternative. I've used HelpMaker to actually make a .hlp help file.
Reply With Quote
Reply

Bookmarks

Tags
forms, textbox

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update a field in a table based upon information in anther table? sabrown Database Design 4 09-03-2009 12:01 PM
Programming a result field in a table Linda Programming 9 07-13-2009 06:07 PM
Sum of two field names in one record in the same table. Mr. LL Access 5 03-31-2009 07:16 PM
Updating Table field from Form Kunuk Access 0 02-26-2009 08:41 PM
how to update only one field in 1 table? viccop Access 3 02-21-2009 11:32 AM


All times are GMT -8. The time now is 08:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.