J
Jason M
I am trying to generate a unique "number" for a workorder system that I am
creating and seem to be running into a brick wall... Here is the essence of
what I would like to do:
A user would select the departmetn that the workorder is for and this would
become the prefix for the workorder (IE "ABC" or "DEF")
The next two digits would be the month the workorder was generated (IE 10
for october)
The next two would be the two digit year (IE 03)
and the last three digits would be a sequential number that would be reset
each year that would range from 0000 to 9999 giving us 10,000 possible work
orders for each department.
The finished work order would look like this: "ABC-10-03-0001"
I can create the individual pieces easy enough, but I would like to combine
them and use this for the WONumber that will be the identifier for that
workorder in the database (stored without dashes).
If someone could be kind enough to point me in the right direction I would
be appreciative.
TIA, Jason M Canady
creating and seem to be running into a brick wall... Here is the essence of
what I would like to do:
A user would select the departmetn that the workorder is for and this would
become the prefix for the workorder (IE "ABC" or "DEF")
The next two digits would be the month the workorder was generated (IE 10
for october)
The next two would be the two digit year (IE 03)
and the last three digits would be a sequential number that would be reset
each year that would range from 0000 to 9999 giving us 10,000 possible work
orders for each department.
The finished work order would look like this: "ABC-10-03-0001"
I can create the individual pieces easy enough, but I would like to combine
them and use this for the WONumber that will be the identifier for that
workorder in the database (stored without dashes).
If someone could be kind enough to point me in the right direction I would
be appreciative.
TIA, Jason M Canady