My database is meant for faculty members at my university to scout out potential research partners with similar interests.
I have a table with faculty members' names, and then a list of about 54 keywords which might be applicable to that faculty member's research. Each keyword is its own field, and all of the keywords are Yes/No values.
An example [for arguments sake, using dummy keywords] runs like this, with the field names first:
Last: Miller
First: Larry
Blue: Yes
Red:
Green: Yes
Yellow:
Then the next entry, using those same fields, would be:
Last: Muldrich
First: Maria
Blue:
Red: Yes
Green: Yes
Yellow: Yes
Suppose a faculty member wants the research interests "Blue" and "Red."
With the code I have now, neither Larry Miller nor Maria Muldrich would turn out, because neither one has BOTH Blue AND Red.
Instead, I would like the query to return both Larry AND Maria, because they fit the criteria of having EITHER "Blue" OR "Red."
I have tried replacing my ANDs with ORs in my query's SQL [Originally was using an IIF statement]. The query does not run at all and instead gives me my entire table.
My boss is planning on demonstrating my database to his supervisor VERY soon, so a quick answer would be welcome, if at all possible. Thanks!
I have a table with faculty members' names, and then a list of about 54 keywords which might be applicable to that faculty member's research. Each keyword is its own field, and all of the keywords are Yes/No values.
An example [for arguments sake, using dummy keywords] runs like this, with the field names first:
Last: Miller
First: Larry
Blue: Yes
Red:
Green: Yes
Yellow:
Then the next entry, using those same fields, would be:
Last: Muldrich
First: Maria
Blue:
Red: Yes
Green: Yes
Yellow: Yes
Suppose a faculty member wants the research interests "Blue" and "Red."
With the code I have now, neither Larry Miller nor Maria Muldrich would turn out, because neither one has BOTH Blue AND Red.
Instead, I would like the query to return both Larry AND Maria, because they fit the criteria of having EITHER "Blue" OR "Red."
I have tried replacing my ANDs with ORs in my query's SQL [Originally was using an IIF statement]. The query does not run at all and instead gives me my entire table.
My boss is planning on demonstrating my database to his supervisor VERY soon, so a quick answer would be welcome, if at all possible. Thanks!