S
Scott
I want to have a control on a form that is used to filter the records from a
table. I've seen it on forms I have used, but I don't know how to make it
happen myself. The idea is that I have a table of phone numbers. When the
form is first opened, the form shows all the phone numbers and has a control
where the user can enter numbers that will filter the records that appear.
It should filter the records as the user types the number.
Example: The table has a lot of phone numbers. As soon as the user types a
number in the control, the form will display records that have only the
numbers in the string the user types. So if the number is 112-251-5564, if
the user types a 5, the records that have a 5 in it will show, when he types
a 5 again, only the records with 55 in the phone number will appear, when he
types a 6, only the records with a 556 will appear. Eventually he will get a
list of numbers that is short enough that he can see the number he is looking
for, even if he doesn't have the entire number.
Any help is appreciated.
Note: I have a query that strips dashes and spaces from phone numbers, so
the records are actually based on the query, not the table. i will
eventually have data from multiple tables/queries that are joined, but I
assume this will not be difficult to add later. For now I just want to get
the list of phone numbers to filter as I describe.
table. I've seen it on forms I have used, but I don't know how to make it
happen myself. The idea is that I have a table of phone numbers. When the
form is first opened, the form shows all the phone numbers and has a control
where the user can enter numbers that will filter the records that appear.
It should filter the records as the user types the number.
Example: The table has a lot of phone numbers. As soon as the user types a
number in the control, the form will display records that have only the
numbers in the string the user types. So if the number is 112-251-5564, if
the user types a 5, the records that have a 5 in it will show, when he types
a 5 again, only the records with 55 in the phone number will appear, when he
types a 6, only the records with a 556 will appear. Eventually he will get a
list of numbers that is short enough that he can see the number he is looking
for, even if he doesn't have the entire number.
Any help is appreciated.
Note: I have a query that strips dashes and spaces from phone numbers, so
the records are actually based on the query, not the table. i will
eventually have data from multiple tables/queries that are joined, but I
assume this will not be difficult to add later. For now I just want to get
the list of phone numbers to filter as I describe.