Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CONTROL TIP TEXT 1

Status
Not open for further replies.

KUZZ

Technical User
Aug 13, 2002
254
0
0
GB
IN CODE, HOW DO I SET THE
[DSCR].CONTROLTIPTEXT TO BE EQUAL TO THE TEXT THE DSCR CONTROL DIPLAYS IN ITSELF, PLEASE!!! REGARDS, KUZZ

LIFE IS GREAT WHEN THERE IS SOMEONE TO HELP YOU.
DESIGNING DATABASES SINCE 2002
 
Put this line in the form's OnOpen event and again in the box's AfterUpdate event. There may be a way to get it into a single event, but I don't know what it is.

Code:
Me.YourComboBox.ControlTipText = Me.YourComboBox.Column(index for whichever column has the description you want to use)
'remember indexes start at zero, so column 1 would be index 0, column 2 index 1, and so forth

Example:
Me.CustomerType.ControlTipText = Me.CustomerType.Column(1)

Good luck,
CJ
 
thank you for your help, i found out what I was doing wrong.
I had this action for ON MOUSE MOVE which is kind of stupid. I should have put it ON CURRENT

So this is what I have now

desc.controltiptext=me.desc

and it works REGARDS, KUZZ

LIFE IS GREAT WHEN THERE IS SOMEONE TO HELP YOU.
DESIGNING DATABASES SINCE 2002
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top