Lets say you have recordset with a FirstName field in the query and you want to limit it to just the first names that start with 'f' then
Lets take the same example and say you want to also take only those with the LastName starting with 'Ma'Code:Data1.recordset.filter="FirstName Like f*"
Or if you want to filter by what a user has typed in a textboxCode:Data1.recordset.filter="FirstName Like f* And LastName Like Ma*"
And to reset the filter back to noneCode:Data1.recordset.filter="Firstname='" & Text1.text & "'"
Sorry about the delay but better late then neverCode:Data1.recordset.filter=""




Reply With Quote