Display a "help" text every I move from one control to another (DATASHEET)


I use datasheets a lot.
My plan is to display a help text for EVERY field in a datasheet.  The help text will be held in the "tag" of each control.

My datasheet is called "Datasheet1".  It is held as a subform within "Form1".
Form1 has a text field called "ShowHelp".

What VBA do I use to update Form1.ShowHelp with the "tag" of each control? (according as the control is in focus).
Patrick O'DeaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
So you want to show the data from the Tag of each control as the user enters that control?

You can add code to each control's Enter event:

Me.Parent.ShowHelp = YourControlName.Tag

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rey Obrero (Capricorn1)Commented:
try placing this in the got_focus event of the control

me.parent.showhelp=me.[control Name here].tag
Dale FyeOwner, Developing Solutions LLCCommented:
That will get really annoying, really fast!

Instead, you might want to consider adding a help button to the main form to allow the user to click on it if they have a question about a field.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Jeffrey CoachmanMIS LiasonCommented:
Yep, the 5th or 6th time a regular user gets this, they will ask for a way ti disable it.

What I tend to do is use the ControlTipText property of the control(s).

In this way:
1. No code is needed
2. The help will "appear" whenever the user hovers their mouse over the control.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
The ControlTip doesn't show up in Datasheet view, however.
Rey Obrero (Capricorn1)Commented:
Jeffrey CoachmanMIS LiasonCommented:
lol, ..ok...
Jeffrey CoachmanMIS LiasonCommented:
Patrick O'Dea,

Does it have to be a datasheet?
You can use the old trick of squeezing all the controls together in a continuous form to give you the same "appearance" of a datasheet,
Just throwin' it out there...
Patrick O'DeaAuthor Commented:
I take your point Jeffrey ... about imitating the datasheet...
But I just love the ease of setting up datasheets and all the inbuilt functionality.
Patrick O'DeaAuthor Commented:
Thanks folks!

... there will be a follow question!
Jeffrey CoachmanMIS LiasonCommented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.