The database is used to track publication change requests for numerous technical documents controlled by my department. I have two problems...
1)What's the best way to keep the Request Numbers unique while also ensuring the Sequence# is always 1 higher than the previous record, and starts over each year.
2)Should the Sequence# field data type be Number or Text?
Each record gets assigned a Request Number which used 5 fields - Fleet, Chapter, Document, Year, Sequence#.
Example: 5-27-PSC-07-0249
The Sequence# needs to start over each year, and be consecutive, beginning with 0001. And, it needs to start with 0001 and climb consecutively for each Fleet.
There are 9 Fleet types: 1 through 9.
So if someone enters a record for Fleet 7, the Sequence# needs to be the next higher number for the last one used where Fleet was "7".
The only way I can see to use an autonumber for the Sequence# is to use 9 tables. And, I still don't know how to make it start over each year.
I'm hoping someone can provide some suggestions.
Thank you!
Mike
1)What's the best way to keep the Request Numbers unique while also ensuring the Sequence# is always 1 higher than the previous record, and starts over each year.
2)Should the Sequence# field data type be Number or Text?
Each record gets assigned a Request Number which used 5 fields - Fleet, Chapter, Document, Year, Sequence#.
Example: 5-27-PSC-07-0249
The Sequence# needs to start over each year, and be consecutive, beginning with 0001. And, it needs to start with 0001 and climb consecutively for each Fleet.
There are 9 Fleet types: 1 through 9.
So if someone enters a record for Fleet 7, the Sequence# needs to be the next higher number for the last one used where Fleet was "7".
The only way I can see to use an autonumber for the Sequence# is to use 9 tables. And, I still don't know how to make it start over each year.
I'm hoping someone can provide some suggestions.
Thank you!
Mike