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!

Filters by Subquery are not working

Status
Not open for further replies.

eksortso

Programmer
Jun 30, 2003
43
US
I had an application, an MDB with all tables linked to SQL Server, where I would call DoCmd.ApplyFilter on an Order form and use a WhereCondition like the following:
Code:
EXISTS (SELECT 1 FROM OrderDetails AS x WHERE Orders.OrderID = x.OrderID AND x.Received = 1))
Now I am try to develop an ADP, but this same sort of filter fails! I get this error message: "Cannot apply Filter on one or more fields specified in the Filter property."

What am I doing wrong? Why won't this filter work?
 
Never mind. I've since discovered that I can apply this query as a Server Filter without any problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top