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

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

Recommended Posts

Posted

Hi All,

I have a field called “b_number”, how do I write a scrip asking to find the biggest number at b_number field andafter found I will have the add from the b_number +1 added at b_number.

Any help will be appreciated. Thank you in advance.

;)

Posted

asking to find the biggest number at b_number field andafter found I will have the add from the b_number +1 added at b_number.

Why not just use an auto-enter serial number? It would save a lot of work. Can you say a bit more about what you are doing and why? What is that b_number?

Posted

I do have a field with an auto serial number. b_number is to used for a receipt number when people paid in full so each time someone paid I have to print a receipt but it have to be in a serial number.

Posted (edited)

A couple of ways to solve this:

1. Use a relationship and a calc:

Max(related:;)_number)+1

2. Or, use a script something like:

Show All

Go to record(last)

Set variable($theBiggest;b_number)

New record

Set field(b_number;$theBiggest+1)

Edited by Guest
Why does this forum sometimes break text apart?

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