Custom Sequence Numbers (1 Viewer)

Pat Hartman

Super Moderator
Staff member
Local time
Today, 01:43
Joined
Feb 19, 2002
Messages
43,275
Two examples of a custom sequence number. One is a complex ID with concatenated parts. The other is just a sequence number for detail items and is not used as a PK. It has a renumber feature.

See below
 
Last edited:

Pat Hartman

Super Moderator
Staff member
Local time
Today, 01:43
Joined
Feb 19, 2002
Messages
43,275
New version. Not much difference. Just a little cleanup.

OLD ---- scroll down for newest.
 

Attachments

  • CustomSequenceNumber_20221109.zip
    622.4 KB · Views: 265
Last edited:

Gasman

Enthusiastic Amateur
Local time
Today, 06:43
Joined
Sep 21, 2011
Messages
14,299
@Pat Hartman
Just had a peek to see what the code looked like. :)

I ran the query directly choosing SalesID of 4, and got this result?
Is that intentional, as I would have expected the numbering to be as per entry into the table, as shown by DetailID number?

1677095066459.png
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 01:43
Joined
Feb 19, 2002
Messages
43,275
That's the original data. You would need to change one of the item numbers to see the sequence change. Change the 10 to 100. Resequence and the ten will move to the end and be number 40.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 01:43
Joined
Feb 19, 2002
Messages
43,275
Sorry, forgot to upload the updated version.
 

Attachments

  • CustomSequenceNumber_20230224.zip
    630.9 KB · Views: 232

Users who are viewing this thread

Top Bottom