cmedata Posted April 18, 2006 Share Posted April 18, 2006 I have a one-many relationship for my database. I want to be able to show the total number of child records for each parent record. Is there a simple calculation for that? All I can think of is to write a script to perform a search for each parent and then get the record count. I am sure there is easier and faster way. Of course the actual case is more complicated than this. I need to show, for each parent, total number of child records seperated into different state. Something like, 4 from TX, 12 from WA, 20 from FL (total of 4 subset). I figure I can achieve this by adding more conditions to my relationship. Thank you in advance for your help. Link to comment Share on other sites More sharing options...
Ender Posted April 18, 2006 Share Posted April 18, 2006 I want to be able to show the total number of child records for each parent record. Is there a simple calculation for that? Define a calc in the parent file: Count of Child (calculation, number result) = count(child::recordID) Link to comment Share on other sites More sharing options...
cmedata Posted April 18, 2006 Author Share Posted April 18, 2006 Thank you soooo much. It works great! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6582 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