Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5291 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I have a database that I need to print to forms, that are sorted according to three fields. ie

Company Name, Rep Name, Client Name, where each company has a number of Reps and each rep has a number of Clients. Each form will have a printed list of the Clients for each Rep and the Company Name and will be numbered sequentially, I need the number to restart its count when the Company name changes. Any ideas?

Posted

Assuming you've already sorted by company and you want to renumber the found set, this script would do it:

Loop

  Set Variable[ $n ; Case( companyID = $ID ; $n+1 ; 1 ]

  Set Field[ sequence ; $n ]

  Set Variable[ $ID ; companyID ]

  Go to record[ next ; exit after last ]

End Loop

Posted

I *think* this should work in version 7 too:

Define a summary field as Count of [any field that cannot be empty], Running count, Restart summary for each sorted group when sorted by Company.

  • Newbies
Posted

Thanks for the help so far

I can't see where i set this part of the summary field

Restart summary for each sorted group when sorted by Company

This topic is 5291 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.