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 7197 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I am a graphic designer currently developing an FM7 database to track clients, jobs, invoices etc. In this system, each client / vendor has a two-letter code (unique) associated with them. This code is currently used in a simple calculation, combining it with a three-digit auto generated serial number to create a job number. For example, the first record would generate AE001 and the next FY002. In this simple model, the client code is variable, but the serial number always goes up by one.

What I'd like to do is have the job number auto generate in increments of one, based upon which client is selected. For example, if I created a new record for client code AE, the job number would be AE001. Then, regardless of how many jobs for other clients were generated after that, the next job number for client code AE would be AE002.

I hope this makes sense. I'm sure it's a simple solution, but I just can't seem to figure it out. Any help would be greatly appreciated.

Best Regards,

David

Posted

Here is a rough sketch out of memory of one approach.

You need following fields:

clientCode : like AE

jobCode = clientCode & serial

previousSerial

serial

A self relationship Item is based on clientCode = clientCode

What you would like is to make serial the max of the related serial + 1.

But FM will yell that that is a circular. Sort the relationship by serial

  • 2 weeks later...

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