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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querying a Filtered Form

Status
Not open for further replies.

katoc

Programmer
Feb 15, 2005
52
US
Hello.

I have a form. It has a number of fields in it all bound to a table. I have placed an 'Apply Filter' button it, so depending on which field the cursor is at, it'll filter the dataset by that value. Say the form starts out displaying 100 records and I click on the 'Apply Filter' button on 'field1', so now, I have 45 records showing. Is there a way to write a SQL statement where it queries only the 45 records and not all 100?

Thanks.

Sofia
 
could use sql but easiest way would be append the filter
me.filter = me.filter & the new filter
 
Thanks, this helps some. I wasn't aware of this property.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top