local aa[1], i, n n = adbobjects(aa, 'Relation') && look in the help for the contents for i = 1 to m.n ... use table1 && + ataginfo() use table2 && + ataginfo() && construct select statement && execute select statement use in table1 use in table2 endfor