The point is, you won't get any responses if you insist on your own
confusing terminology as no one will understand what you want. The fact
that you want to filter on two fields (not "variables", by the way -those
are values held in memory) whose values are identical suggests that your
data is not structured and related correctly - as I tried to point out.
But ignoring all that, to set the query criteria you request, use the AND
operator.
An example, using data from two separate table to filter data in a third :
SELECT tblAgencies.Agency, tblAgencies.AgencyID
FROM tblAgencies, tblAgencyDonation, tblAgencyPledge
WHERE (((tblAgencies.AgencyID)=[tblAgencyDonation].[AgencyID] AND
(tblAgencies.AgencyID)=[tblAgencyPledge].[AgencyID]));
The SQL to get the same result from three related tables:
SELECT tblAgencies.Agency, tblAgencies.AgencyID
FROM (tblAgencies INNER JOIN tblAgencyDonation ON tblAgencies.AgencyID =
tblAgencyDonation.AgencyID) INNER JOIN tblAgencyPledge ON
tblAgencies.AgencyID = tblAgencyPledge.AgencyID;
-Ed
"Alex L Pavluck" <ap******@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I used these names just to illustrate the problem. If you don't have a
solution to provide then please don't respond.
Again the problem is that I need to build a sub-query that will join on
*2* variables not just 1 from the master and child.