Jump to content

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

Recommended Posts

Posted

Yes Eric I do now use Max and others.

That is why I ask if there is a rule to use numbers or text fields. But if I use a text field, how would the invoices be sorted...

Is it the common rule to add text into the serial N

Posted

Instead of using the formula:

Max(selfjoin::SerialNumber)+1

... you can generate new serial numbers with:

"VEND"&(Max(selfjoin::SerialNumber)+1)

to make sure that the prefix remains.

Posted

I might be missing something, but it seems to me that this would cause a sorting problem (as you expressed concern over), when you go from 9999 to 10000 for example. To avoid this, I'd start the serial number at a higher number like 1000000 (assuming you never expect to have more than 9 million records).

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