This very simple SQL-Select clause is giving me a "Command is missing required clause" error. I've compared my command to the help file for construction but nothing jumps out as being missing. Does anybody know what I'm doing wrong?
BTW, this is for VFP 7
Steve
Code:
cFnCode = 'A1' && Bank account code reference
SELECT SPACE(13) as codeval, 'BLANK for ALL' as descript ;
UNION select subaccount AS codeval, acctdesc AS descript ;
FROM cashacct ;
WHERE fncode=cFnCode ;
ORDER BY codeval ASC ;
INTO CURSOR cur_subacct
BTW, this is for VFP 7
Steve