View Full Version : How to filter search through datagrid


zambam
04-25-2007, 10:01 AM
hi

i have a textbox which the user enters a criteria. i want it to filter through a datagrid on my form.

e.g. search is 'harry', all records with harry in the first name field should show in the datagrid.

thanks

KeithG
04-25-2007, 10:23 AM
I am assuming your data grid is a subform? You need something like below

me.[subformName].Form.Filter=[FirtsName]='" & me.[textboxCriteriaControl] & "'"

me.[subformName].form.FilterOn=true