James Gill Posted November 30, 2010 Posted November 30, 2010 I am trying to set up a calculated field that will give me the name of each related record in a portal based upon which record number it is. Basically, what I want to do is create a calc that will name each row of a portal whatever number of a series that the portal row falls in to and also count the total number of related records. i.e. - 1 of 5, 2 of 5, 3 of 5, etc. I'm not sure where to put the calc. It would make more sense to put it in the parent relationship so that it can count the related records, but when I do this using a count ( related record) field it only gives me the total number of related records in my portal.
James Gill Posted November 30, 2010 Author Posted November 30, 2010 Well I sort of got what I wanted by using the @@ symbol and then creating a calc field in the parent record that counts the related records. I'm still curious if there is a way to accomplish this via a pure calculation field though.
comment Posted November 30, 2010 Posted November 30, 2010 Where do you want to use this? In the portal itself?
James Gill Posted December 1, 2010 Author Posted December 1, 2010 (edited) Two places, in the portal itself and in the related record as a name. Edited December 1, 2010 by Guest
comment Posted December 1, 2010 Posted December 1, 2010 In the portal, you could use a calculation field (defined in the child table) = Get ( RecordNumber ) & " of " & Get ( FoundCount ) This will work dynamically, so if you delete or add a record, or change the sort order of the portal, records will be renumbered to reflect the change. Not sure what you mean by "in the related record as a name". The "related record" doesn't know it is related; in fact, it could be related to many tables or related to the same table in more than one way.
Recommended Posts
This topic is 5105 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