Filter Text Based On Change Event By Ali Gerailly 9139078449

Discussion in 'Access' started by Ali Gerailly, Apr 13, 2017.

  1. Ali Gerailly

    Ali Gerailly

    Joined:
    Apr 13, 2017
    Messages:
    3
    Likes Received:
    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: Apr 14, 2017
    Ali Gerailly, Apr 13, 2017
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.