Jump to content
  • 0

Record Counter


Joemac

Question

Hello all.  I'm looking to create a field that counts how many associated records are in a separate table.  For example I have a client_table and jobs_table that has a one to many relationship.  I want to calculate how many total jobs each client has.  Any ideas?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

You can also do the same on a report datapage  (assuming that this datapage is using the parent table as its datasource) using a calculated field with an SQL statement.

ex.

Select count(<anyfield>) from Child where Parent_ID = [@field:Parent_ID]

just replace the <anyfield> with the name of any field from the child table

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...