> >SELECT MyTable >SCAN > > cCommand = "update thesqltable set thefield = 'This Value' where id = " + TRANSFORM(MyTable.id) > > =SQLEXEC(nHandle, cCommand) > >ENDSCAN >I think this post must be in VFP Forum, not here, but:
SELECT MyTable lcList = [] SCAN m.lcList = m.lcList + IIF(EMPTY(m.lcList),[],[,]) + TRANSFORM(MyTable.id) ENDSCAN cCommand = "update thesqltable set thefield = 'This Value' where id IN (" + m.lcList + ")" =SQLEXEC(nHandle, cCommand)(not tested)