F
franc sutherland
Hi,
I'm using Access 2003, Windows XP.
I have a table of company turnover data. I want to query out the most
recent entry, by date, for each company (The most recent entry by
date, won't always be the most recent keyed in).
Using the MAX total in a Select query means that I have to remove all
fields except company_id and date, then Group on the company_id to
remove duplicate entries for a company. Is it possible to have all
five fields displayed whilst only showing the most recent entry, by
date, for each company?
The table is tbl_turnover
The fields are
turnover_id (autonumber)
turnover_company_id (integer)
turnover_year (date)
turover_amount (integer)
I've tried to use a sub-query but have been going round and round in
circles.
Any help would be greatly appreciated. I should know this, but I
can't get it to work!!
Thanks,
Franc.
I'm using Access 2003, Windows XP.
I have a table of company turnover data. I want to query out the most
recent entry, by date, for each company (The most recent entry by
date, won't always be the most recent keyed in).
Using the MAX total in a Select query means that I have to remove all
fields except company_id and date, then Group on the company_id to
remove duplicate entries for a company. Is it possible to have all
five fields displayed whilst only showing the most recent entry, by
date, for each company?
The table is tbl_turnover
The fields are
turnover_id (autonumber)
turnover_company_id (integer)
turnover_year (date)
turover_amount (integer)
I've tried to use a sub-query but have been going round and round in
circles.
Any help would be greatly appreciated. I should know this, but I
can't get it to work!!
Thanks,
Franc.