In another message, I suggested report variables - just in case this was for use in a report. Otherwise, I am sure that an SQL solution is possible, but it is a little complicated, and may also be slow.
>Yes Hilmar,
>
blnc = blnc+debit-credit
>
>and
>
>
update AccTran;
> set Balance = blnc+debit-credit;
> where Code = ThisForm.Code.Value
>
>don't works for Khubaib.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)