Using crystal reports Xi. I have SALESTRANSACTIONHEADER.salesaccount left outer joined to SALESACCOUNT.id and with the other selection criteria the following sql is generated.
SELECT "SALESTRANSACTIONHEADER"."TransactionType",
"SALESTRANSACTIONHEADER"."ReversedBy",
"SALESTRANSACTIONHEADER"."TransDateLiymd",
"SALESTRANSACTIONHEADER"."Total", "SALESTRANSACTIONHEADER"."SalesAccount",
"SALESACCOUNT"."Status"
FROM "SALESTRANSACTIONHEADER" "SALESTRANSACTIONHEADER" LEFT OUTER JOIN
"SALESACCOUNT" "SALESACCOUNT" ON
"SALESTRANSACTIONHEADER"."SalesAccount"="SALESACCOUNT"."ID"
WHERE "SALESACCOUNT"."Status"='A' AND
"SALESTRANSACTIONHEADER"."TransactionType"=1 AND
"SALESTRANSACTIONHEADER"."ReversedBy"=0 AND
("SALESTRANSACTIONHEADER"."TransDateLiymd">=20071001 AND
"SALESTRANSACTIONHEADER"."TransDateLiymd"<=20071031)
ORDER BY "SALESTRANSACTIONHEADER"."SalesAccount"
However I am not getting rows for the SALESACCOUNT records that do not have a SALESTRANSACTIONHEADER. Then I was going to suppress the rows that have SALESTRANSACTIONHEADER values.
I have also tried using a subreport but cannot get the shared transaction total back to the main report to suppress the section.
tia.
Ian
SELECT "SALESTRANSACTIONHEADER"."TransactionType",
"SALESTRANSACTIONHEADER"."ReversedBy",
"SALESTRANSACTIONHEADER"."TransDateLiymd",
"SALESTRANSACTIONHEADER"."Total", "SALESTRANSACTIONHEADER"."SalesAccount",
"SALESACCOUNT"."Status"
FROM "SALESTRANSACTIONHEADER" "SALESTRANSACTIONHEADER" LEFT OUTER JOIN
"SALESACCOUNT" "SALESACCOUNT" ON
"SALESTRANSACTIONHEADER"."SalesAccount"="SALESACCOUNT"."ID"
WHERE "SALESACCOUNT"."Status"='A' AND
"SALESTRANSACTIONHEADER"."TransactionType"=1 AND
"SALESTRANSACTIONHEADER"."ReversedBy"=0 AND
("SALESTRANSACTIONHEADER"."TransDateLiymd">=20071001 AND
"SALESTRANSACTIONHEADER"."TransDateLiymd"<=20071031)
ORDER BY "SALESTRANSACTIONHEADER"."SalesAccount"
However I am not getting rows for the SALESACCOUNT records that do not have a SALESTRANSACTIONHEADER. Then I was going to suppress the rows that have SALESTRANSACTIONHEADER values.
I have also tried using a subreport but cannot get the shared transaction total back to the main report to suppress the section.
tia.
Ian