adbobjects(latablearray, "TABLE") && Put table names into an array select 0 for i=1 to alen(latablearray) && loop through each table in the array x=0 on error x=error() use (latablearray(m.i)) && pick up table name from array and attempt to open table on error if m.x=0 && Possible table corruption copy to (addbs(m.ab4)+latablearray(m.i)+'.XLS') type xl5 use endif endforCetin