The code to do this update is:
dim strSql as string
strSql = "update NameOfTable set Balance_1 = Balance_2"
currentdb.Execute strSql
In fact, you could just use one line of code:
currentdb.Execute "update NameOfTable set Balance_1 = Balance_2"
So, it is lot less code then writing a udpate loop...
It not clear which records you wanted updated? The above statement will
update all records (rows) in the table. If there is some type of filter, or
restriction, then you have to change the above sql to reflect this (in other
words, the above sql has no relation to the form, or records in a form).
Since this is a sql update statement, they are VERY dangerous. So, since you
new to this...do make a backup before you run/test this type of update...
So....say again:
do make a backup before you do this....
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com