Jason Turley Posted March 11, 2005 Author Posted March 11, 2005 I have a very simple invoicing solution and am struggling with automating the next invoice number. The invoice number is a text field and made up of 3 parts; the project number (446), "INV", and an incremental 3 digit number "001". invoice number = 446INV001 (next number would be = 446INV002) I'd like to have the invoice number field automatically calculate the next invoice number when a new record is created with a matching project number. How can I increment the final 3 digits but still keep the invoice number in the same format? I can work out the relationship bit without problem, but the calculation is stumping me. any suggestions? Jason...
Jason Turley Posted March 11, 2005 Posted March 11, 2005 I have a very simple invoicing solution and am struggling with automating the next invoice number. The invoice number is a text field and made up of 3 parts; the project number (446), "INV", and an incremental 3 digit number "001". invoice number = 446INV001 (next number would be = 446INV002) I'd like to have the invoice number field automatically calculate the next invoice number when a new record is created with a matching project number. How can I increment the final 3 digits but still keep the invoice number in the same format? I can work out the relationship bit without problem, but the calculation is stumping me. any suggestions? Jason...
Jason Turley Posted March 11, 2005 Author Posted March 11, 2005 I have a very simple invoicing solution and am struggling with automating the next invoice number. The invoice number is a text field and made up of 3 parts; the project number (446), "INV", and an incremental 3 digit number "001". invoice number = 446INV001 (next number would be = 446INV002) I'd like to have the invoice number field automatically calculate the next invoice number when a new record is created with a matching project number. How can I increment the final 3 digits but still keep the invoice number in the same format? I can work out the relationship bit without problem, but the calculation is stumping me. any suggestions? Jason...
Søren Dyhr Posted March 11, 2005 Posted March 11, 2005 Your construction is not particular 1NF (one fact per field) but you can seek inspiration to your numbering in this old template: http://www.filemakerpros.com/SerialCat.sit ...but be aware that today should/ought etc. Lookups be inside a calc'field/autoenter instead. Anyways give it a whirl and see what I'm hinting at. --sd
Søren Dyhr Posted March 11, 2005 Posted March 11, 2005 Your construction is not particular 1NF (one fact per field) but you can seek inspiration to your numbering in this old template: http://www.filemakerpros.com/SerialCat.sit ...but be aware that today should/ought etc. Lookups be inside a calc'field/autoenter instead. Anyways give it a whirl and see what I'm hinting at. --sd
Søren Dyhr Posted March 11, 2005 Posted March 11, 2005 Your construction is not particular 1NF (one fact per field) but you can seek inspiration to your numbering in this old template: http://www.filemakerpros.com/SerialCat.sit ...but be aware that today should/ought etc. Lookups be inside a calc'field/autoenter instead. Anyways give it a whirl and see what I'm hinting at. --sd
Jason Turley Posted March 11, 2005 Author Posted March 11, 2005 Forgot to mention I will be storing the next invoice number in a calculated field and when a new record is created the invoice number will be automatically looked up. I think what I am looking for is a sort of Max calc. Trouble is I want it to work with text and numbers but retain the formatting of previous invoices e.g. 446INV001, 446INV002 etc... Jason
Jason Turley Posted March 11, 2005 Author Posted March 11, 2005 Forgot to mention I will be storing the next invoice number in a calculated field and when a new record is created the invoice number will be automatically looked up. I think what I am looking for is a sort of Max calc. Trouble is I want it to work with text and numbers but retain the formatting of previous invoices e.g. 446INV001, 446INV002 etc... Jason
Jason Turley Posted March 11, 2005 Author Posted March 11, 2005 Forgot to mention I will be storing the next invoice number in a calculated field and when a new record is created the invoice number will be automatically looked up. I think what I am looking for is a sort of Max calc. Trouble is I want it to work with text and numbers but retain the formatting of previous invoices e.g. 446INV001, 446INV002 etc... Jason
-Queue- Posted March 11, 2005 Posted March 11, 2005 See attached for sample. Note that the relationship is sorted by pseudoSerial descending and the auto-enter calc has 'do not evaluate' deselected.
-Queue- Posted March 11, 2005 Posted March 11, 2005 See attached for sample. Note that the relationship is sorted by pseudoSerial descending and the auto-enter calc has 'do not evaluate' deselected.
-Queue- Posted March 11, 2005 Posted March 11, 2005 See attached for sample. Note that the relationship is sorted by pseudoSerial descending and the auto-enter calc has 'do not evaluate' deselected. NextInvoice.zip
Recommended Posts
This topic is 7265 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