Updating table based on Max Values (1 Viewer)

DFowler

Registered User.
Local time
Today, 09:55
Joined
Mar 13, 2008
Messages
29
I am currently trying to update a table with the Max values from the below query.

select debtepisodes.accounts1,deepisodenum,Max(dehepisodenum) from debtepisodes,debtepisodeshistory
where debtepisodes.accounts1 = debtepisodeshistory.accounts1
group by debtepisodes.accounts1,deepisodenum
having deepisodenum <> max(dehepisodenum)

Can anyone suggest how this is possible as have tried for a day now with no success.
 

neileg

AWF VIP
Local time
Today, 09:55
Joined
Dec 4, 2002
Messages
5,975
Why do you want to store the max? You can calculate it any time you want with your query.
 

DFowler

Registered User.
Local time
Today, 09:55
Joined
Mar 13, 2008
Messages
29
Why do you want to store the max? You can calculate it any time you want with your query.

I want to store the max value of the history table as this is what the customer sees. in essence this isn't a wholly access based question as it is mainly trying to find the sql coding required to update from history Max to other table
 

Users who are viewing this thread

Top Bottom