Newbies allied72 Posted July 26, 2010 Newbies Posted July 26, 2010 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?
Fitch Posted July 26, 2010 Posted July 26, 2010 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
comment Posted July 27, 2010 Posted July 27, 2010 OP indicates version 7 - no script variables there.
comment Posted July 27, 2010 Posted July 27, 2010 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 allied72 Posted July 27, 2010 Author Newbies Posted July 27, 2010 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
comment Posted July 27, 2010 Posted July 27, 2010 I am afraid I was wrong: this feature was added in version 8. Try the attached workaround. RestartCount7.zip
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now