I am coding a program on Visual FoxPro that is retrieving data from .DBF files and I have some trouble with a SQL query. My program receives some input from the user, mainly some start and end time and dates.
My trouble is that I use the TEXTMERGE() command inside an INNERJOIN query which is itself in a loop. However, I am unable to make the relation between the two tables. The code that cause me trouble is something like:
SELECT Field1,Field2,Field3 FROM Table1 INNER JOIN TEXTMERGE("StrPath\Table<<i>>.DBF") ON Table1.Field1 = TEXTMERGE("StrPath\Table<<i>>.Field1")
with i being the incremental variable of the loop.
I know that it's the last part that causes me trouble, but I was unable to find a solution.
Thanks in advance for your help.