Hi,
We are building a document control tracking database and need some help.
Our document number is in the following format: 2-DEP-000
Where DEP gets replaced by 3 digit department code depending on which department wrote the document. And 000 gets incremented by 1 for each new document from that department.
Such that we could have the following document numbers for example:
2-DQA-001
2-DQA-002
2-DQA-003
2-MET-001
2-MET-002
2-CAL-001
2-CAL-001
2-GEN-001
2-GEN-002
Two things we are strugling with:
1) Making the numeric portion (000) have 3 digits always.
2) How to get the system to tell us the next available number. We are willing to select the department code, but would like it to tell us that the next number available under the selected department code.
Any assistance is greatly appreciated.
We are building a document control tracking database and need some help.
Our document number is in the following format: 2-DEP-000
Where DEP gets replaced by 3 digit department code depending on which department wrote the document. And 000 gets incremented by 1 for each new document from that department.
Such that we could have the following document numbers for example:
2-DQA-001
2-DQA-002
2-DQA-003
2-MET-001
2-MET-002
2-CAL-001
2-CAL-001
2-GEN-001
2-GEN-002
Two things we are strugling with:
1) Making the numeric portion (000) have 3 digits always.
2) How to get the system to tell us the next available number. We are willing to select the department code, but would like it to tell us that the next number available under the selected department code.
Any assistance is greatly appreciated.