K
Kevin Smith
Dear all I have 2 tables 'Deal Status' and 'Updates' the primary key
is codename. For each deal there are a number of updates linked by
codename.
I have this query for a report
SELECT [Deals Query].Code_Name, [Deals Query].[Start Date], [Deals
Query].Location1, [Deals Query].[Short Description], [Deals
Query].Sector1, [Deals Query].[Contact Name], [Deals Query].[Value
(Local Currency)], Updates.Update
FROM [Deals Query] LEFT JOIN Updates ON [Deals Query].Code_Name =
Updates.Code_Name;
What I want to do is only return the deal details with the latest
update, the query above returns one entry for each update.
Other entries in the updates table include an autonumber(i know thats
bad!) codename and a date of update, but this can be duplicated as
some updates are done more than once a day. i am sure this is simple
but I have a mental block :-D
Please feel free to reply to my mail address.
Many thanks for any help. Kevin
is codename. For each deal there are a number of updates linked by
codename.
I have this query for a report
SELECT [Deals Query].Code_Name, [Deals Query].[Start Date], [Deals
Query].Location1, [Deals Query].[Short Description], [Deals
Query].Sector1, [Deals Query].[Contact Name], [Deals Query].[Value
(Local Currency)], Updates.Update
FROM [Deals Query] LEFT JOIN Updates ON [Deals Query].Code_Name =
Updates.Code_Name;
What I want to do is only return the deal details with the latest
update, the query above returns one entry for each update.
Other entries in the updates table include an autonumber(i know thats
bad!) codename and a date of update, but this can be duplicated as
some updates are done more than once a day. i am sure this is simple
but I have a mental block :-D
Please feel free to reply to my mail address.
Many thanks for any help. Kevin