EllenG Posted November 15, 2009 Posted November 15, 2009 I have a calc field in one table that uses the List function from a related table (matched by date) to list the matching records. Is there a way to limit the records in the List function? I only want to take the first 5 or 6 records from the related List field.
Peter (duksis3) Posted November 15, 2009 Posted November 15, 2009 I don't knew all conditions but will use some auto-enter serial when create records with the same date, and add in the relationship condition AutoEnterSerial<=5 , where 5 or 6 is number determine reflected records in the List. You must define global field or global variable to keep this 5 or 6. But... sometimes you need to "get out" 5 or 6 from all list (from beginning, middle or end). Here other conditions can be important and I don't knew them.
Raybaudi Posted November 16, 2009 Posted November 16, 2009 Is there a way to limit the records in the List function? I only want to take the first 5 or 6 records from the related List field. LeftValues ( List ( YoutTable::YourField ) ; 5 )
LaRetta Posted November 16, 2009 Posted November 16, 2009 Keep in mind that, if you are grabbing the first five list values, it will be the first five depending upon a sort specified at the relationship level. If no sort is specified then it will be the first five created child records (known as natural sort order). :wink2:
Peter (duksis3) Posted November 16, 2009 Posted November 16, 2009 Left Words (List,5) must bee correct, I suppose.
Raybaudi Posted November 16, 2009 Posted November 16, 2009 A value in a value list can have more than one word.
EllenG Posted November 16, 2009 Author Posted November 16, 2009 LeftValues worked... just what I needed. Thanks
Recommended Posts
This topic is 5545 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