Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am trying to setup an automatic invoice numbering script. The invoice number is made up of the job number and the invoice number. (eg "JOB01-01". the next invoice in this set would be "JOB01-02") So I'm trying to increment the second part of this invoice number.

What I've been trying...unsuccessfully:

I do a find on the JOB number, get the count with "Status(CurrentFoundCount)", take that number and add 1 to it "Status(CurrentFoundCount) + 1" and then concat this incremented find count for the JOB number to the JOB number.

JOB number & Status(CurrentFoundCount) + 1

I can't get filemaker to do it. HELP.

What am I doing wrong.

I've tried making a calculation field that gets the found count but that isn't working either.

Thanks-

Mike

Posted

Just to amplify Stevinvegas' answer a bit... This will tidy up the appearance of the rightmost digits, using a Job_Number text field which, I assume, currently contains something like "JOB01" for a job.

JOB_Invoice_Number = Job_Number & "-" & Right("00" & NumToText(Status(CurrentFoundCount)+1),2)

This topic is 8237 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.