Greetings All,
I have been having good success with getting my first Appeon application going.
I did run into a problem though and was hoping that I could get some pointers.
I see the following error in a messagebox when I open a window that has a datawindow with the sql syntax below (it has several union commands).
Can someone kindly let me know if you see anything amiss with the SQL or what else I might try to track down?
Thank you!!
Paul
SELECT operator.confirmation_no,
operator.gen_conf_no,
operator.affiliate_job_id,
operator.req_date_time,
operator.pu_county,
operator.pu_city,
operator.dest_county,
operator.dest_city,
operator.dr_no,
operator.car_type,
operator.status_flag,
operator.origin_status_flag,
operator.cancel_date_time,
operator.cancellation_no,
operator.cancelled_by,
operator.farm_code,
operator.vnd_confirmation_no,
operator.vnd_id,
operator.farm_type,
operator.send_status,
operator.vip_flag
FROM operator
WHERE ( operator.farm_code = :sp_id ) AND
( operator.affiliate_job_id = "" ) AND
(operator.status_flag not in ("F","C"))
UNION
SELECT operator.confirmation_no,
operator.gen_conf_no,
operator.affiliate_job_id,
operator.req_date_time,
operator.pu_county,
operator.pu_city,
operator.dest_county,
operator.dest_city,
operator.dr_no,
operator.car_type,
operator.status_flag,
operator.origin_status_flag,
operator.cancel_date_time,
operator.cancellation_no,
operator.cancelled_by,
operator.farm_code,
operator.vnd_confirmation_no,
operator.vnd_id,
operator.farm_type,
operator.send_status,
operator.vip_flag
FROM operator
WHERE ( operator.farm_code = :sp_id ) AND
( operator.affiliate_job_id = NULL ) AND
(operator.status_flag not in
("F","C"))
UNION
SELECT operator.confirmation_no,
operator.gen_conf_no,
operator.affiliate_job_id,
operator.req_date_time,
operator.pu_county,
operator.pu_city,
operator.dest_county,
operator.dest_city,
operator.dr_no,
operator.car_type,
operator.status_flag,
operator.origin_status_flag,
operator.cancel_date_time,
operator.cancellation_no,
operator.cancelled_by,
operator.farm_code,
operator.vnd_confirmation_no,
operator.vnd_id,
operator.farm_type,
operator.send_status,
operator.vip_flag
FROM operator
WHERE ( operator.farm_code = :sp_id ) AND
( operator.status_flag = "X" )
UNION
SELECT operator.confirmation_no,
operator.gen_conf_no,
operator.affiliate_job_id,
operator.req_date_time,
operator.pu_county,
operator.pu_city,
operator.dest_county,
operator.dest_city,
operator.dr_no,
operator.car_type,
operator.status_flag,
operator.origin_status_flag,
operator.cancel_date_time,
operator.cancellation_no,
operator.cancelled_by,
operator.farm_code,
operator.vnd_confirmation_no,
operator.vnd_id,
operator.farm_type,
operator.send_status,
operator.vip_flag
FROM operator
WHERE ( operator.farm_code = :sp_id ) AND
( operator.status_flag = "Y" )