getting last 5 entries from a table
Hi,
I have to create a query that will get the 'last 5' transaction entries for 'each' company in a table. The
table consists of about 100 companies, each with anywhere from 1 to 10 or so transactions. Any ideas on how to proceed. I tried the Multiple Entry Query Wizard but that didn't really help.
My table consists of 5 fields: ID, UpdateDate, CompanyName, AnalystName and TransactionDetail.
We have about 100 different companies and everytime there is a transaction for a particular company the transactions detail and analyst name and a company name and update date are entered into the database. I would like to create a query (and am missing the Criteria) that will return the UpdateDate, CompanyName, AnalystName and TransactionDetail info for the last 5 transactions for each company.
Thanks,
Sam
Hi,
I have to create a query that will get the 'last 5' transaction entries for 'each' company in a table. The
table consists of about 100 companies, each with anywhere from 1 to 10 or so transactions. Any ideas on how to proceed. I tried the Multiple Entry Query Wizard but that didn't really help.
My table consists of 5 fields: ID, UpdateDate, CompanyName, AnalystName and TransactionDetail.
We have about 100 different companies and everytime there is a transaction for a particular company the transactions detail and analyst name and a company name and update date are entered into the database. I would like to create a query (and am missing the Criteria) that will return the UpdateDate, CompanyName, AnalystName and TransactionDetail info for the last 5 transactions for each company.
Thanks,
Sam
Last edited: