the_moto Posted May 10, 2002 Posted May 10, 2002 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
SteveB Posted May 10, 2002 Posted May 10, 2002 It looks like Job # is text, not numeric. Use the NumToText(Status(CurrentFoundCount)+1)
RussBaker Posted May 10, 2002 Posted May 10, 2002 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now