Use Field Value as ControlTip Text

M

magmike

I have limited space on a contact form. In most cases, the width of
the Title field is enough room to display the entire field value.
However, in the rare case that the title is very long (this is
sometimes the case) I would like the user to be able to hover over the
Title field on the form, and see the whole field value displayed.

I found a way, but it's not perfect.

I set the OnClick event of the Title field to
ContactTitle.ControlTipText = [ContactTitle]

However, since it is a continuous form, once one record's title is
clicked in, it continues to show the previous fields value as a
controltip, even when hovering over another title field with a
different value.

My hope was to do this on a hover, but a hover event doesn't seem to
be available, and the MouseMove event shows the same value over and
over as well (and causes the form to flicker a lot). Does anyone have
any ideas on a better way to do this?

thanks in advance,

magmike
 
F

fredg

I have limited space on a contact form. In most cases, the width of
the Title field is enough room to display the entire field value.
However, in the rare case that the title is very long (this is
sometimes the case) I would like the user to be able to hover over the
Title field on the form, and see the whole field value displayed.

I found a way, but it's not perfect.

I set the OnClick event of the Title field to
ContactTitle.ControlTipText = [ContactTitle]

However, since it is a continuous form, once one record's title is
clicked in, it continues to show the previous fields value as a
controltip, even when hovering over another title field with a
different value.

My hope was to do this on a hover, but a hover event doesn't seem to
be available, and the MouseMove event shows the same value over and
over as well (and causes the form to flicker a lot). Does anyone have
any ideas on a better way to do this?

thanks in advance,

magmike

Code the control's Double-click event:
DoCmd.RunCommand acCmdZoomBox
 
M

Marshall Barton

magmike said:
I have limited space on a contact form. In most cases, the width of
the Title field is enough room to display the entire field value.
However, in the rare case that the title is very long (this is
sometimes the case) I would like the user to be able to hover over the
Title field on the form, and see the whole field value displayed.

I found a way, but it's not perfect.

I set the OnClick event of the Title field to
ContactTitle.ControlTipText = [ContactTitle]

However, since it is a continuous form, once one record's title is
clicked in, it continues to show the previous fields value as a
controltip, even when hovering over another title field with a
different value.

My hope was to do this on a hover, but a hover event doesn't seem to
be available, and the MouseMove event shows the same value over and
over as well (and causes the form to flicker a lot). Does anyone have
any ideas on a better way to do this?


I have not used it, but it seems like it might be what you
are looking for.
http://www.lebans.com/tooltip.htm#Bug Record Selectors
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top