Ernesto_Paez
MIS
Hi,
I am able to run this prg file in VFP 5.0, however in VFP 9.0 SP2 if fails on the "group by" also i need to use INNER JOIN here is the code below,can anyone help on what could be wrong, the machine where i have vfp 5.0 installed is down, so i tried in VFP 9.0 and the error i get is "group by clause is missing or invalid"
Thanks in advance.
I am able to run this prg file in VFP 5.0, however in VFP 9.0 SP2 if fails on the "group by" also i need to use INNER JOIN here is the code below,can anyone help on what could be wrong, the machine where i have vfp 5.0 installed is down, so i tried in VFP 9.0 and the error i get is "group by clause is missing or invalid"
Thanks in advance.
Code:
set safety off
sele 1
use arcust04 shared
sele 2
use arYtrn04 shared
SET CENTURY on
store ("01/01/2018") to date1
store ("12/31/2018") to date2
SELECT Arcust04.custno, Arcust04.company, Arcust04.city, sum(arYtrn04.bextpri);
FROM arcust04 INNER JOIN arYtrn04 ;
ON Arcust04.custno = arYtrn04.custno;
WHERE arYtrn04.current<>"X" AND arYtrn04.invdte >= (date1);
AND arYtrn04.invdte <= (date2);
GROUP BY Arcust04.custno;
ORDER BY 3;
INTO TABLE newtemp.dbf
go top
index on sum_bextpr tag extp descending && added to desplay data from higher to lower
browse
store " Apex" to comp_name
store "History" to status
report form detinv preview &&to printer prompt
use newtemp excl
index ON CUSTNO TO cus && this was part of the above line
GO TOP
brow
copy to g:\users\chrisba\apex123118 type xls
zap
close all