UPDATE ta SET col = DMAX("col" , "tb", "id=" & id )
or (untested)
UPDATE ta INNER JOIN tb ON ta.id=tb.id
SET ta.col = tb.col
WHERE tb.col = ( SELECT MAX(col) FROM tb AS c WHERE c.id = ta.id )
A Jet query implying an aggregate (elsewhere than in a sub-query in the
WHERE clause) is NOT updateable.
Vanderghast, Access MVP
> is it can be pass in the Access?
> how to change?
[quoted text clipped - 5 lines]
> group by id) t
> where ta.id = t.id