Hi, all!
I have a form (YoungProfMatchF) wherein there is a combo box linked to a table (YoungProfT) and field (YPName). The user selects a person (YPName) from the combo box, then presses a button that runs the below query (YPMatchQ) created in SQL view. The query shows the results of ALL YoungProfs and Orgs that have either (or both) of two fields in common (I added the // lines only in this forum post):
// DISPLAY THE ORGANIZATION NAMES AND CORRESONDING YOUNG PROFESSIONAL NAMES
SELECT OrganizationsT.OrganizationName, YoungProfT.YPFirstName
// WHERE BOTH THE ORG & YP HAVE CHOSEN EITHER 'MUSIC' OR 'ENTREPRENEURSHIP' OR BOTH
FROM OrganizationsT INNER JOIN YoungProfT ON (OrganizationsT.OrgMusic = True AND YoungProfT.YPMusic = True) OR (OrganizationsT.OrgEntrepreneurship = True AND YoungProfT.YPEntrepreneurship = True);
I would, however, like it to only show the ORGs corresponding to the YoungProf selected in the combo box.
Is there any way to add this filtering to my query?
With thanks!!
--ak