How to display text when cursor is placed in field

R

reeve13

I am working in a continuous form, and I am trying to get the yellowis
pop up box to display the actual text entered when my cursor is place
within the field called “Specific Matter” I really would be gratefu
for any help on this one.

Thanks
 
P

Pat Hartman

Put your message in the ControlTip Text property. If you want it to display
in the status bar, put it in the StatusBar text.
 
R

reeve13

Please forgive me if what I am trying to articulate is not coming acros
clearly. What I would like to happen is (for e.g., on this websit
(high-tech talks forum), when I place my cursor on a name the yellowis
pop up box displays the text/question asked…and that’s what I would lik
to happen. Is there a code or string I need to enter in the “control ti
text” property box that will display the text already there?

Thanks
 
B

Brendan Reynolds

Private Sub Form_Current()
Me.TestID.ControlTipText = Nz(Me.TestID.Value, "")
Me.TestText.ControlTipText = Nz(Me.TestText.Value, "")
End Sub
 
R

reeve13

THANK YOU, Brendan!!!....IT WORKED!!! :) One more thing, I notice
have to click in the field before the pop up box displays the text. I
there a way just to move my cursor within the field and have it display
the text without clicking in the field. Also, how do I get the text t
wrap so the box is not the same length of the text?

Thanks!!
 
B

Brendan Reynolds

You shouldn't need to click in the control, the control tip should be
displayed if you hover the pointer over the control for a second or so.
That's how it works on my system, using Access 2003. I seem to remember the
control tip feature being a little unpredictable that way in earlier
versions, though.

I don't think there's much you can do to control the built-in control tip
feature, if you need more control, you might want to check out Steven
Lebans's custom ToolTips class ...
http://www.lebans.com/tooltip.htm
 
P

Pat Hartman

The Current event wouldn't be activated until the user clicked in a field to
move focus to the record. Try the MouseMove event for the field in
question.
Brendan Reynolds said:
You shouldn't need to click in the control, the control tip should be
displayed if you hover the pointer over the control for a second or so.
That's how it works on my system, using Access 2003. I seem to remember
the control tip feature being a little unpredictable that way in earlier
versions, though.

I don't think there's much you can do to control the built-in control tip
feature, if you need more control, you might want to check out Steven
Lebans's custom ToolTips class ...
http://www.lebans.com/tooltip.htm
 
B

Brendan Reynolds

I was thinking about a single-record form, Pat, in which case the Current
event for the first record would fire when the form was opened. But now that
you mention it, I suppose if it is a continuous form placing the code in the
Current event would mean that when the user pointed to a different record,
without clicking, the Control Tip would still display the value from the
first record. Also when the user was entering a new record, the Control Tip
would not display anything until the record had been saved. So I expect you
are right - the MouseMove event is probably a better choice.

--
Brendan Reynolds

Pat Hartman said:
The Current event wouldn't be activated until the user clicked in a field
to move focus to the record. Try the MouseMove event for the field in
question.
 
Top