A
atledreier
Hello!
I have a problem with my numbering.
I am making a database for document control, and need some pointers.
The system is as follows (and this is set in stone);
All document numbers start with a project code, then originator code,
recipient code, type code, and sequence number
An example of a doc number: FG-AIL-BP-A-0001.
So far it's easy. The problem is that the sequence numbers need to
count each individual combination of projects, recipients and
originators, as well as document types. So we can have a table of
documents looking like this;
PMS-AIL-BP-A-0001
PMS-AIL-BP-MC-0001
PMS-AIL-BP-A-0002
PMS-BP-ABB-VOR-0001
See my problem? What would be a good way to organize this?
So far I have a table with lookups to companies, project codes and
document types, but the sequence numbering has me stumped.
I have a problem with my numbering.
I am making a database for document control, and need some pointers.
The system is as follows (and this is set in stone);
All document numbers start with a project code, then originator code,
recipient code, type code, and sequence number
An example of a doc number: FG-AIL-BP-A-0001.
So far it's easy. The problem is that the sequence numbers need to
count each individual combination of projects, recipients and
originators, as well as document types. So we can have a table of
documents looking like this;
PMS-AIL-BP-A-0001
PMS-AIL-BP-MC-0001
PMS-AIL-BP-A-0002
PMS-BP-ABB-VOR-0001
See my problem? What would be a good way to organize this?
So far I have a table with lookups to companies, project codes and
document types, but the sequence numbering has me stumped.