Simon
4Penny.net
Points: 7583

10/16/2018 3:20:11 PM

GetNextNumber

* This article, and all our great SQL (Dynamics) documentation, Is available on the SQL (Dynamics) menu

Increment a document number:

This routine takes the input number and increments it by 1

Document numbers commonly are in the format of a few alpha characters followed by a number --like 'ORD0001' or 'PO0001'

This routine will strip off the trailing numbers, increment, and then put the two parts back together again

4Penny.net
Version: Unknown or N/A
Section: SQL Scripts
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3