Article ID: 118554
Article Last Modified on 12/1/2003
SQL column <macro variable + table field> not found
table1='customer'
table2='invoices'
SELECT customer.cno, invoices.cno FROM &table1, &table2;
WHERE customer.cno=invoices.cno INTO CURSOR QUERY
However, using all macro substitution in the example below will result in
the error message mentioned above:
SELECT &table1.cno, &table2.cno FROM &table1, &table2;
WHERE &table1.cno=&table2.cno INTO CURSOR QUERY
SELECT &table1..cno, &table2..cno FROM &table1, &table2;
WHERE &table1..cno=&table2..cno INTO CURSOR QUERY
The extra period is required as a terminator for the macro substitution.
Additional query words: VFoxWin FoxMac FoxDos FoxWin
Keywords: kberrmsg KB118554