FOR mycount = 1 TO 10 > curfield = "Field"+TRANSFORM(m.mycount) > REPLACE &curfield WITH 1501002 FOR &curfield = 1301002 ALL IN Table1 >NEXTMy response would be very similar to yours:
FOR mycount = 1 TO 10 lcCmd = ; Field(m.mycount) ; + " WITH 1501002 FOR " ; + Field(m.mycount) ; + " = 1301002 " REPLACE &lcCmd. IN Table1 NEXTThe help says ALL means all records in the table. The FOR is limiting the records, so you're not doing all. ALL is therefore not required.