Avatar of SteveL13
SteveL13
Flag for United States of America asked on

Filter a form when typing in a text box

I'm trying to filer records being displayed in a form when the user types in a text box.  This what I have in the onchange event of the form but if I try to type "123" as an example, it replaces the "1" with a "2" when I type the "2".

I also want it to display ALL records that contain "123" in the street address.


    Me.Filter = "StreetAddress like '" & Me.txtFindStreetAddress.Text & "*'"
    Me.FilterOn = True
Microsoft Access

Avatar of undefined
Last Comment
SteveL13

8/22/2022 - Mon
John Tsioumpris

use the onchange event..read your input and filter your data with LIKE
SteveL13

ASKER
I don't understand.  I am using the onchange event but it isn't working as I stated.
ASKER CERTIFIED SOLUTION
Dale Fye

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SteveL13

ASKER
I went with a command button per you suggestion.  Thank you.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23