Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter By Form on Subforms 1

Status
Not open for further replies.

Hendy

Programmer
Oct 3, 2000
20
GB
I have a form with two subforms on it. When I go to search using filter by form on the subform. I get the result of all the record not the ones I want to searching for.

Can you help?

Thanks [sig][/sig]
 
The built in ACCESS Filter by Form does not work on the Subform.
I have been able to accomplish this with a separate unbound search form called from the main form.

With some coding you can set the search form to search both a main form as well as a subform.
The trick is creating some SQL that is called when you search any of the sub form fields. Then the SQL is applied to the record source and then if you have any fields from the main fomr that you included in the search a filter is applied to the main form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top