I am joining three tables. One is folder joined to gift by folderID (one to many relationship) and folder is joined to pledge by folderID (also one to many relationship). The problem is when the records are retrieved, I receive duplicate records to "Fill space" (ie. I have 5 gifts but only 2 pledges, the pledges will be repeated to fill space.) I want to sum the gifs and sum the pledges independently. I have tried formulas and running totals. The problem is if you sort pledges to use a {pledge.pledgeid} <> previous({pledge.pledgeID}) then the gifts formula will not catch duplicates because Crystal repeats the gifts in order. Then if I sort on giftID, the gifts will work but the pledge formula doesn't work. I have also tried to select distinct records but it doesn't catch the duplicates I am looking for.
I am using ADO and Crystal 9 professional.
Any help / advice would be GREATLY appreciated!!!!
ps. I have created similar reports in ODBC where you can solve the problem by using a UNION query but I can't seem to get a query to work in ADO (though CR 9 seems to say you can.)
I am using ADO and Crystal 9 professional.
Any help / advice would be GREATLY appreciated!!!!
ps. I have created similar reports in ODBC where you can solve the problem by using a UNION query but I can't seem to get a query to work in ADO (though CR 9 seems to say you can.)