I am trying to redo an old report. I have 2 tables. People and Refer (Actually more but to simplify i'll just use the 2 main ones). Refer table may have one or more referrals for each customer. Each referral has a status. Lets say A (accepted), R (rejected) and I (incomplete). I need to select all the customers that were not A (accepted). The problem with this is that some customers have more than one record with all 3 status's. If I select all <> A this would also select records of people who were R (rejected) or I (incomplete) but were later A (accepted). Which is what I am trying to avoid. Basicly what I want to do is select customers that were not A (accepted) but if they were A (accepted) to reject the other records they might have.
The way I do this now is I select all the customers. Group it by customer name to avoid duplicates. Put all my info in the group header. Details is suppressed. Sort it by Referral Status Asc. To get A (accepted) to the top. Then in the group format section if status = A I suppress it. If its not = A i suppress all but the 1st rec. Because of all the suppressed records I have to do a formula Counter with Init, Add, Show to get an accurate count.
Anyways its a real hassle since I have a few reports like this. I know there has to be an easier way to do this.
Hope this makes sense, all suggestions more than welcome
thank you.
The way I do this now is I select all the customers. Group it by customer name to avoid duplicates. Put all my info in the group header. Details is suppressed. Sort it by Referral Status Asc. To get A (accepted) to the top. Then in the group format section if status = A I suppress it. If its not = A i suppress all but the 1st rec. Because of all the suppressed records I have to do a formula Counter with Init, Add, Show to get an accurate count.
Anyways its a real hassle since I have a few reports like this. I know there has to be an easier way to do this.
Hope this makes sense, all suggestions more than welcome
thank you.