Jump to content
  • 0

Record Counter


Joemac
 Share

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

Hi @Joemac,

You can create an Integer field for the count and use a Task to update the record count of jobs for each client if you have some sort of Client_ID field for both tables as a reference.

I have sample here that you can refer to:
image.png.f66ce7a37e1c1afd19b499593a2ce160.png

I hope this helps!

~Tubss

Link to comment
Share on other sites

  • 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...
 Share

×
×
  • Create New...