Doing a textmerge call for a query join sounds really ugly. However, it sounds like you have multiple tables of the same structure and trying to find common records, such as between table data that has been separated between years, or companies. Since you are already in a loop of "i", why not try to do something like...
for i = 2 to whatEverRange
lcOtherTable = "strPath\Table" + allt( str( i ))
select T1.Field1, T1.Field2, T1.Field3;
from Table1 T1;
inner join (lcOtherTable) TX;
on T1.Field1 = TX.Field1;
into cursor C_WhateverTempResultSet
if reccount( "C_WhateverTempResultSet" ) > 0
*/ Do whatever with results
endif
endfor
The (paren variable) will open the table you want, just give it a simplified "alias" (via TX) so you don't have to EVAL anything else. The correct "other" table will be used with the alias "TX", to your "ON" command can join T1.Field1 to TX.Field1... much easier to read and debug.