locked
Display variables in a textbox tooltip RRS feed

  • Question

  • I have a text box on a form, when I hover over the textbox I want to display a couple of variable values on my form e.g. var1 = 2 and var2 = 6.

    Please can anyone tell me how I can do this in VBA.

    Thanks

    Monday, January 11, 2016 3:15 PM

Answers

  • Hi,

    You can use the ControlTipText property to specify the text that appears in a ScreenTip when you hold the mouse pointer over a control.

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, January 21, 2016 7:34 AM

All replies

  • Try something like: Me.txtBox1.ControlTipTexts = SomeVariable

    You may want to use VBA to set this variable on different events, like the CurrentEvent, LoadEvent, or after user had done something on the form.
    • Proposed as answer by André Santo Monday, January 11, 2016 4:09 PM
    Monday, January 11, 2016 3:59 PM
  • Hi,

    You can use the ControlTipText property to specify the text that appears in a ScreenTip when you hold the mouse pointer over a control.

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, January 21, 2016 7:34 AM