StarScream
Technical User
Hypothetical:
You are having an international party. In MS Access you have a table with a list of each person, the country their from, and their jobtitle (Ambassador, President, Minister, Driver, etc).
If you query a list of countries who are bringing their Ambassador by setting ="Ambassador" in the criteria section then your query returns only those countries where that is true.
I want to return all countries, list all people and flag who is the Ambassador and who is the President (for example) in a report based upon that query. (Something where you need to highlight 2 or more people from a table of people based upon a specific job title.) I'm not talking about listing the [Job Title] field in the report. I want to say in the report:
Belgium
The President is .....
The Ambassador is .....
Then list all people coming from Belgium
(and do that for each country)
MY PROBLEM IS:
As soon as I add the column ="President" then I get no records since no one person (record) has a duty title of both Ambassador and President. I can't use an OR statement since I need to know each individual's name. If I have separate queries (one that just identifies each country's Amb, one for Pres), than link them to a master query, that only returns those countries where an Amb and a Pres are identified. Maybe some countries aren't sending their President (he hates your country). Since I'm using text, I'm dealing with nulls. I can't convert any nulls to some other text (using IIF IS NULL or NZ) since the nulls are not in an actual table field.
I am currently using something similar to the separate queries which means my report only shows that countries with both a Pres and an Ambassador.
Am I missing the obvious? Any suggestions? Thanks.