ControlTip Text filter

Gepetto

Registered User.
Local time
Today, 15:31
Joined
Aug 8, 2008
Messages
10
I need to show in ControlTip Text filtered result from three table fields.
How to do that?
Help!!!

 
One way to do this is to use a table of tips, VBA, DLookup, and your form's current and afterupdate events...

Code:
Option Compare Database
Option Explicit

Private Sub Form_AfterUpdate()
  
  UpdateControlTips
  
End Sub

Private Sub Form_Current()

  UpdateControlTips

End Sub


Private Sub UpdateControlTips()

    Me.TextBoxName.ControlTipText = DLookup("Field_Name", "Tip_Table_Or_Query_Name", _
                          "[Field_Name] = Form![TextBox_Name]")
                          
    'Etc.

End Sub

Regards,
Tim
 
Thanks a lot!:D
 

Users who are viewing this thread

Back
Top Bottom