SELECT (calias) SCAN FOR ALLTRIM(USER_ID) = ALLTRIM(User) and alltrim(lettername) = alltrim(letters.lettername) SCATTER TO A_Temp ADEL(A_temp,1) && Delete first row ADEL(A_Temp,1) && Delete second row DIMENSION A_temp(ALEN(A_temp,1)-2) && Remove deleted rows INSERT INTO RT_LETTR FROM ARRAY A_Temp ENDSCANYou need to be aware that ADEL() will fill a row with .F. values and move it to the end of the array. That's why we delete row 1 twice and then redimension the array to get rid of the deleted rows. Read up on this function in the help file (it can do columns too).