birdprogrammer
Programmer
I'm creating a vendor performance report and having problems with duplicate detail line items. The best approach would be to correct the data through linking tables. However, I can't do this because the 2 tables I'm working with only have one link. Let me clarify.
Inventory Receipt Information (table 1)
Receipt# = R0013505
PO Line Item# = 11
Item# = 2197236
Distribution (table 2)
Receipt# = R0013505
Account# = 50000-002
The join between the two tables is by the receipt number. Ultimately, if I had 1 distribution account per receipt, there is NOT any duplicates. But if there is more than 1, it will produce more than one because I can't join on anything but the receipt number.
I've tried using the select distinct records, previous() function but that prompts an error where the data is not populated after the report runs some other function, running total fields but that cannot be used in the selection criteria.
Bottom line, I'm looking for an approach to get rid of the duplicates. I was hoping to add a previous po line# in the detail section (which works) and compare that. Crystal rejects.
Any help is greatly appreciated.
Inventory Receipt Information (table 1)
Receipt# = R0013505
PO Line Item# = 11
Item# = 2197236
Distribution (table 2)
Receipt# = R0013505
Account# = 50000-002
The join between the two tables is by the receipt number. Ultimately, if I had 1 distribution account per receipt, there is NOT any duplicates. But if there is more than 1, it will produce more than one because I can't join on anything but the receipt number.
I've tried using the select distinct records, previous() function but that prompts an error where the data is not populated after the report runs some other function, running total fields but that cannot be used in the selection criteria.
Bottom line, I'm looking for an approach to get rid of the duplicates. I was hoping to add a previous po line# in the detail section (which works) and compare that. Crystal rejects.
Any help is greatly appreciated.