Want Multi-table query to return only stalest record in child table
E2A: This question has been answered to my satisfaction - thank you to user boblarson!
________________________________
Hi: long time no post. For anyone who remembers me, I changed job 16 months ago and now work for a non-profit, mostly in The Raiser's Edge.
I'm creating a small Access DB to manage contacts and prospects for our upcoming Capital Campaign. We're working in 97-2003.
The DB is a simple contact management DB, and the principals on the project want a multi-table query with several fields from the parent (contact) table, and ONE piece of data from the child table (two fields) - they want to see only the stalest INCOMPLETE item from the child table, which is a combo activity/to-do list.
So the returned query would have one line item for each parent record, and would show the oldest outstanding to-do item (whether it's in the past or in the future).
I've included a copy of my DB. The parent table is called "PROSPECTS". The query I created (with the fields my principals want but no code) is called "Q Prospects most recent outstanding action".
If anyone could help me OR just direct me to a thread with a similar question, I'd most deeply appreciate it!
E2A: To make it more clear for folks who might not want to open my DB, following is a list of fields in the query, with additional info:
Title - (Parent) No criteria
FName - (Parent) No criteria
LName - (Parent) No criteria
CompanyName - (Parent) No criteria
AssistantName - (Parent) No criteria
PrimaryContactAtFirst - (Parent) No criteria
DueDate - (Child) Criteria = want to see only the oldest outstanding record (without a complete date)
Purpose - (Child) No criteria
CompleteDate - (Child) Criteria = Is Null (only incomplete items to be queried on)
E2A: This question has been answered to my satisfaction - thank you to user boblarson!
________________________________
Hi: long time no post. For anyone who remembers me, I changed job 16 months ago and now work for a non-profit, mostly in The Raiser's Edge.
I'm creating a small Access DB to manage contacts and prospects for our upcoming Capital Campaign. We're working in 97-2003.
The DB is a simple contact management DB, and the principals on the project want a multi-table query with several fields from the parent (contact) table, and ONE piece of data from the child table (two fields) - they want to see only the stalest INCOMPLETE item from the child table, which is a combo activity/to-do list.
So the returned query would have one line item for each parent record, and would show the oldest outstanding to-do item (whether it's in the past or in the future).
I've included a copy of my DB. The parent table is called "PROSPECTS". The query I created (with the fields my principals want but no code) is called "Q Prospects most recent outstanding action".
If anyone could help me OR just direct me to a thread with a similar question, I'd most deeply appreciate it!
E2A: To make it more clear for folks who might not want to open my DB, following is a list of fields in the query, with additional info:
Title - (Parent) No criteria
FName - (Parent) No criteria
LName - (Parent) No criteria
CompanyName - (Parent) No criteria
AssistantName - (Parent) No criteria
PrimaryContactAtFirst - (Parent) No criteria
DueDate - (Child) Criteria = want to see only the oldest outstanding record (without a complete date)
Purpose - (Child) No criteria
CompleteDate - (Child) Criteria = Is Null (only incomplete items to be queried on)
Attachments
Last edited: