I'm trying to get last month's records out of an SQL table from a VFP 7.0 program. Tried the following but get SQL syntax errors;
Rec_date=month(date())-1
STORE SQLCONNECT('SERVER') TO SrvConn
SQL="select * from emi where month(loaddate)=rec_date"
=sqlexec(dataConn, SQL, 'records')
How do you use VFP varibles with SQL commands in a VFP program?
Rec_date=month(date())-1
STORE SQLCONNECT('SERVER') TO SrvConn
SQL="select * from emi where month(loaddate)=rec_date"
=sqlexec(dataConn, SQL, 'records')
How do you use VFP varibles with SQL commands in a VFP program?