Yes. I understand that. I am refering to control tip in a form. But, I want to display the result of a query in the text as I move the mouse over the control on the form.
How do you set the control tip value for the result of the query?
A little more combersome, but alternatively, perhaps a command button to disply a message box that displays the result of the one-field query. The query produces number.
Private Sub txtText_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.txtText.ControlTipText = Nz(DLookup("ID", "Table1", "Text='" & Me.txtText & "'"), "NA")
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.