G
Guest
I would like to filter all my records using textboxes and command buttons,
instead of getting the user to right-click on the appropriate field.
I have:-
txtName = persons name relating to each record
txtFilter = filter criteria
cmdFilter = filter command button
Upon clicking the cmdFilter button, filter all records in the txtName field
with the criteria in the txtFilter field.
Eg.
If txtFilter = "mit" then all records where the name includes 'mit' are
shown.. Mitchell, Smith and Smit etc. Bearing in mind I also need to
incorporate a wildcard at each end too.
So far i have tried variations around this but cant quite seem to find the
right syntax.
Me.Filter = "[txtName]= ' * & txtsearch & *'"
Promptly followed by:
Me.FilterOn = True
Anyone got any pointers please ???
instead of getting the user to right-click on the appropriate field.
I have:-
txtName = persons name relating to each record
txtFilter = filter criteria
cmdFilter = filter command button
Upon clicking the cmdFilter button, filter all records in the txtName field
with the criteria in the txtFilter field.
Eg.
If txtFilter = "mit" then all records where the name includes 'mit' are
shown.. Mitchell, Smith and Smit etc. Bearing in mind I also need to
incorporate a wildcard at each end too.
So far i have tried variations around this but cant quite seem to find the
right syntax.
Me.Filter = "[txtName]= ' * & txtsearch & *'"
Promptly followed by:
Me.FilterOn = True
Anyone got any pointers please ???