Gabe Posted July 7, 2005 Posted July 7, 2005 I have a problem with a calculation / relationship setup. Basically, I have a table full of lawsuits, and partes are joined to the suits table. The problem is in the display of the party names. The display can only have one plaintiff name vs one defendant name. If there are multiple plaintiffs or defendants, the name of either will have "et al" on the end of it. I need to figure out how to calculate if there is more than a single plaintiff or defentant involved in the suit. I have a lawsuits table, a partiesInSuit join table, and a parties table. the partiesInSuit table is setup like this: suitNum - sequence - partyid - partytype 1400 - 1 - 2 - plaintiff 1400 - 1 - 6 - defendant 1400 - 2 - 10 - defendant So, in the join table I keep track of whether a party is a plaintiff or a defendant. There is also a sequence number that determines the priority of a party, 1 being dominant, and the rest following. On just about every layout and printable form, I have to display plaintiffname vs defendantname As I said before, if there is more than 1 of a type of party, I have to show "et al" plaintiffname vs defendantname et al I can't figure out from a calculation how to tell if there are other defendants in the same suit. Can anyone suggest any ideas?
TerenceM Posted July 7, 2005 Posted July 7, 2005 You need to set up a relationship that pulls out all the plaintiffs or all the defendants on a given lawsuit, and then use Count to see if there is more than one record that matches that relationship. You have a few options for where to do this calculation, but since you
Gabe Posted July 9, 2005 Author Posted July 9, 2005 Yes. Thank you, that works very well. I was trying a backwards approach, trying to do a count calculation from the parties table itself.
Recommended Posts
This topic is 7145 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now