Skip to main content

Request Codes (AutoNumber Reset)

  • February 15, 2022
  • 1 reply
  • 16 views

Forum|alt.badge.img+4

Hi guys,

Anybody know a way to create proper request codes / references for each row.

For example, my current system is to concantenate a Letter (ā€˜S’ for example) with the product name, then place the year of the request, then add the autonumber ID for reference.

So it comes out looking like: S-MOT-22-1.

However, I would like the last number in this field to reset and start counting again at every new year, and maybe even with every product type.

Ex:
S-MOT-22-1 for the first MOT request of Jan 1 2022

&

S-MOT-23-1 for the first MOT request of Jan 1 2023

1 reply

Forum|alt.badge.img+16
  • Inspiring
  • 529 replies
  • February 15, 2022

Lets have a column that is the Date that the record was created and a column for the Product Name

Then we concatenate the following: CONCATENATE("S-",{Product Name},"-",RIGHT(LEFT({Date Created},4),2))