James Gill Posted May 25, 2010 Posted May 25, 2010 I'm trying to find out if there is a way to determine if a parent record has any child records via a calculation. I know I can do this by creating a script and setting a variable of the parent record and then doing a search on the child table, but to me that just seems like a convoluted way to go about this.
lawaid Posted May 25, 2010 Posted May 25, 2010 ... but to me that just seems like a convoluted way to go about this. I would agree. You can have a searchable numeric field, instead. In your Parent table, create a calculation resulting as a Number. Modify the following calc to fit your relationship and field ... Count ( childrelationship::IDfield ) It's critical that the field being "counted" always have a value. Most developers use the ID field. Hope this helps!
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