It doesn't commit :(

Hi all,

I'm rather new to Interbase in Delphi and I'm struggling a bit with
something probably very stupid ...

I have a query, resulsts are shown in a grid, values in the grid can be
updated, values are written to the DB immedialty (all using a TIBDataset).
As soon as the user has finished editing all records (so when he has edited
the last row of the query)  the should appear a popup with a sum of one
particular numeric field.  But I keep getting the sum of the OLD values (not
the recent edited  values).

This is really driving me nuts, who can help ?