[ ]
I get a "SELECT'S are not UNION compatible" error when I run this. What am I missing here? Green variables are numeric, red are logical, rest are character or memo.
[tt]
SELECT a.vourptnym, a.vourptstyl, a.vyear, a.vourptnum, b.vusrname, ;
a.pi_m_tc, a.vmiscinfo, a.pi_m_id, a.vccode, a.voa_thick, ;
a.vod_deep, a.vid_wide, a.pipicnum, a.vfamname, a.vourwebgrp, ;
b.vusrptnum, b.vusrinfo, b.vusrptnym, ;
a.piprice, b.vusrprice, ;
b.vusrood, b.rb_luoem ;
FROM JFamPart a, JUsrInfo b ;
WHERE a.vourptnum = b.vourptnum ;
INTO CURSOR J_TEMP1 ;
ORDER BY 1, 2, 3, 4, 5 ;
UNION ;
SELECT a.vourptnym, a.vourptstyl, a.vyear, a.vourptnum, '', ;
a.pi_m_tc, a.vmiscinfo, a.pi_m_id, a.vccode, a.voa_thick, ;
a.vod_deep, a.vid_wide, a.pipicnum, a.vfamname, a.vourwebgrp, ;
'', '', '', ;
a.piprice, 0.00, ;
.F., .F. ;
FROM JFamPart a ;
WHERE a.vourptnum NOT IN ;
(SELECT b.vourptnum FROM JUsrInfo b)
[/tt]
mmerlinn
"Political correctness is the BADGE of a COWARD!"
I get a "SELECT'S are not UNION compatible" error when I run this. What am I missing here? Green variables are numeric, red are logical, rest are character or memo.
[tt]
SELECT a.vourptnym, a.vourptstyl, a.vyear, a.vourptnum, b.vusrname, ;
a.pi_m_tc, a.vmiscinfo, a.pi_m_id, a.vccode, a.voa_thick, ;
a.vod_deep, a.vid_wide, a.pipicnum, a.vfamname, a.vourwebgrp, ;
b.vusrptnum, b.vusrinfo, b.vusrptnym, ;
a.piprice, b.vusrprice, ;
b.vusrood, b.rb_luoem ;
FROM JFamPart a, JUsrInfo b ;
WHERE a.vourptnum = b.vourptnum ;
INTO CURSOR J_TEMP1 ;
ORDER BY 1, 2, 3, 4, 5 ;
UNION ;
SELECT a.vourptnym, a.vourptstyl, a.vyear, a.vourptnum, '', ;
a.pi_m_tc, a.vmiscinfo, a.pi_m_id, a.vccode, a.voa_thick, ;
a.vod_deep, a.vid_wide, a.pipicnum, a.vfamname, a.vourwebgrp, ;
'', '', '', ;
a.piprice, 0.00, ;
.F., .F. ;
FROM JFamPart a ;
WHERE a.vourptnum NOT IN ;
(SELECT b.vourptnum FROM JUsrInfo b)
[/tt]
mmerlinn
"Political correctness is the BADGE of a COWARD!"