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

Recommended Posts

Posted

FM7, 2 tables, Clients and Jobs.

When I create a new job for an existing client, I want to increment the Job Number for that client's jobs only. I want Client # 001-Job # 001, 2, 3, etc., then Client # 002-Job# 001, 2, 3, etc.

So I need to find Max value for ONLY the related records, in order to add 1 to it. Script triggered from Clients layout will create the related (by client#) record, and assign the next highest job # FOR THAT CLIENT.

How would YOU do it?

Thanks!

Posted

Assumig you have a TO "Jobs" where Client # = Client #, then Max( Jobs::Job Number) will give you the maximun of the Job Number for that client. This may not be what you want to use as the next Job Number. You may have to format it with a calculation.

I don't like this method of asigning job numbers. I use an auto-entered serial number.

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