Filter Text Based On Change Event By Ali Gerailly 9139078449


Joined
Apr 13, 2017
Messages
3
Reaction score
0
Private Sub Text0_Change()

' Refresh Is Necessary Due To After Filtering Any Text While Back In Null Position Or Clear Text
Filter Remove Otherwise Never Clear Filtering

Me.Refresh
Qry = "[dwg] like " & "'*" & Me.Text0 & "*'"
Me.Filter = Qry
Me.FilterOn = True
Text0.SelLength = 0
'Nz Is Necessary Due To Not Give You The Null Error !!!
Text0.SelStart = Nz(Len(Me.Text0))

End Sub
 
Last edited by a moderator:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top