I believe DSum is available in Access if that's what you're using but I'm not sure it'll really give you what want. It would allow you to update one total row at a time but I don't theink it's format would allow you to do an update of the whole table.
I can't remember if access support updating from joins but if it does this should work:-
Code:
Update Tot
Set amount = Sum(Sing.Amount)
From table_tot Tot
Join table_single Sing
on Tot.Account = Sing.Account
and Tot.Cod = Sing.Cod
Group By Tot.Account, Tot.Cod
Failing that you could use a sub query:-
Code:
Update table_tot
set amount =
(Select Sum(amount)
From table_single
where table_tot.Account = table_single.Account
and table_tot.Cod = table_single.cod)
I would question why you're maintaining a totals table though. That's a denormalisation and one you would generally want to avoid. Why not just calculate the totals from the single records as and when you need them?