Aussie John Posted October 29, 2007 Posted October 29, 2007 I would like to get the value of a field from a related set of records. The value would be from a whichever record has a second field (date) which is the most recent. Wow - hope that made sense!! eg record1 - field1=35, field2=2nov2002 record2 - field1=12,field2=2jan2007 result=12 as field2 has the latest date thanks
Tusif Ahmad Posted October 29, 2007 Posted October 29, 2007 Hi Why dont you sort with date field? and the date latest date will be on top...
bcooney Posted October 29, 2007 Posted October 29, 2007 Yes, sort the relationship by date desc, and the parent will see the child with the most recent date as its first related record.
Aussie John Posted October 30, 2007 Author Posted October 30, 2007 Thanks for you good suggestions. So i dont get thrown by a resort I found an alternate method. I created a new field Max(datefield) and then created a new relationship using this max field to have access to the relevant fields.
bcooney Posted November 2, 2007 Posted November 2, 2007 That'll work too. I usually have a dedicated relationship for such a sort to_TO_Sorted
Recommended Posts
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