Hello everyone,
Need to know what is wrong on the below select ?
I want to be able to display the vendor name in the cursor below, in this case the field for the vendor name is called "company"
oK, I have the vendno in table potran04 but no the company field in that table, so table apvend04 will have vendno field and company field as well, i just want to pull the company value from apvend04 table when potran04.vendno = apvend04.vendno
so what is wrong in the below code, i am getting error "unrecognized verb"
Code:
lcjob_no= "119677"
path_1="S:\PRO50\APEX04\POTRAN04" &&VFP 5.0 TABLE TYPE
path_2="F:\MFG\ENG_JOBS" && FOXPRO DOS 2.0 TABLE
path_3="F:\MFG\INS_LOG" && FOXPRO DOS 2.0 TABLE
path_4 ="s:\pro50\apex04\apvend04"
Select INT(VAL(t1.dept)) as ball_no, sht as Sheet, INT(t1.QtyOrd) as QTYORD, INT(t1.Qtyrec) as QTYREC, t4.company, t2.part_type as PRC, t2.draw_no, t1.item as ItemNo, t1.vpartno as vendorpartno, ;
t1.descrip, t1.Recdate, t1.purno;
From &path_1 t1 ;
INNER Join &path_2 t2;
INNER JOIN &path_4 t4;
ON INT(VAL(t2.ball_no)) = INT(VAL(t1.dept));
ON t1.vendno = t4.vendno;
WHERE t1.reqno= lcJob_no AND t2.job_no=lcJob_no ;
ORDER BY 1,2,7 INTO Cursor RESULS1