Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report with Multiple Max number from 3 tables HELP!!

Status
Not open for further replies.

bdacct

Technical User
Jul 31, 2003
3
US
Hello everyone,
Here is a link to what my tables look like and what my query currently is giving me. Below the table and query is a sample of what I need the query to give me.


I need to somehow create a query to give me the most recent records for a particular Audit and Action Plan. I have two primary keys in the Master file Audit_Number and Action_Plan_Number because you can have multiple plans per Audit. We get responses on the Current_status of the audits multiple times and make multiple Updates to the file throughout the process. But I need information from all three tables in my report but only the most recent response and most recent update from each table. Currently it is giving me duplicate records for each Imported Response and each Update.

Thanks.
Brett

John "Brett" Duell
Internal Audit Intern
The Relizon Company
Phone: (937) 630-9977
John.duell@relizon.com
 
Modify your query into a totals query, group by audit and action plan, select max for the date fields to get the latest response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top