bankofbermuda Posted June 14, 2001 Posted June 14, 2001 I have 2 related databases, Clients and Parties in which several parties are related to one client by a specific relationship titled Mother, Father, Son, Daughter. In the Party database is a Score field. In the Client database is a score field referencing each relationship i.e. Mother:Score. or Father:Score, Son:Score, Daugher:Score. My objective is to select the relationship which has the highest score so that the other fields in the Party database may be referenced by the Client database for the highest scoring relationship. Is there a way to accompish this??
BobWeaver Posted June 15, 2001 Posted June 15, 2001 Make a new relationship based on a calculated field called HiScoreRel (in the clients file) with this formula: case ( Mother::Score = Max(Mother::Score,Father::Score,Daughter::Score,Son::Score), MotherRecordID, Father::Score = Max(Mother::Score,Father::Score,Daughter::Score,Son::Score), FatherRecordID, Daughter::Score = Max(Mother::Score,Father::Score,Daughter::Score,Son::Score), DaughterRecordID, SonRecordID) ...where MotherRecordID, FatherRecordID, DaughterRecordID and SonRecordID are the unique record IDs for the respective records.
bankofbermuda Posted June 21, 2001 Author Posted June 21, 2001 Bob, Worked great!! Thanks for the reply. Chris
Recommended Posts
This topic is 8647 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