Kamis, 01 Desember 2011

[MS_AccessPros] Filter List Box through Text Box

 

I am trying to filter list box through my text box as I data change in text box the code is as following but its not working what am I doing wrong

Private Sub Text2_Change()
    Dim strsql As String
   
    strsql = "SELECT ID, EmpName FORM tblName WHERE EmpName Like '*" & Me.Text2.Text & "*'"
    Me.List0.RowSource = strsql
       
End Sub

 
Thanks & Regards,
--
Abdul Shakeel

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Tidak ada komentar:

Posting Komentar