PilatesBlackBelt Posted February 8, 2008 Share Posted February 8, 2008 Is there any way to get the value in a field that is the last record in a portal? For example, if this were my portal: 1 - blue 2 - green 3 - silver 4 - purple Is there any way to get "purple" to appear in a field that is outside the portal? And once "5 - orange" is added to the portal, to have "orange" appear in the portal? Thanks! Link to comment Share on other sites More sharing options...
devinriley Posted February 12, 2008 Share Posted February 12, 2008 Why not add a date created field to the portal table and then sort the relationship on that in descending order. Now if you add just the related field to your layout, you get the last related record created for the one you're browsing. Link to comment Share on other sites More sharing options...
David Head Posted February 12, 2008 Share Posted February 12, 2008 So you have two tables - Person and Colour - linked by PersonID. To display the last related record value from the Colour::Colour field, use a calculation in the Person table: GetNthRecord ( Colour::Colour ; Count ( Colour::ID ) ) If you want the number and a dash to come with it: Count ( FavColour::ID ) & " - " & GetNthRecord ( FavColour::Colour ; Count ( FavColour::ID ) ) See how you go with that. smiley_cool Link to comment Share on other sites More sharing options...
PilatesBlackBelt Posted March 7, 2008 Author Share Posted March 7, 2008 I used David's method. It worked great! Thanks! smiley-smile Link to comment Share on other sites More sharing options...
Recommended Posts