K
Kevin
I have a database in which one-to-many relationships exist as follows:
Project Number
Under a Project Number can be many Item Numbers
Under each Item Number can be many Key Numbers
The issue: Key numbers start at "001" and can go up to "602", and cannot
duplicate on a project. Each project starts the key numbers at 001, but they
don't alwzys correspond with certain item numbers. So on a project we have
the following example:
Project #5432 / Item #01 / Key 001
Project #5432 / Item #01 / Key 002
Project #5432 / Item #01 / Key 003
Project #5432 / Item #02 / Key 004
Project #5432 / Item #03 / Key 005
Project #6868 / Item #01 / Key 001
Project #6868 / Item #02 / Key 002
Project #6868 / Item #02 / Key 003
Project #6868 / Item #02 / Key 004
Is there a way to sort of AutoNumber the Key field and allow it to start
back at 001 for each project number? Is there then a way to have new records
in the Key Table default to the next available key number? I don't want
users to have to search the records that relate to each item number to try
and find what the next key number should be.
I hope all this makes sense! Any input or suggestion is appreciated!
Project Number
Under a Project Number can be many Item Numbers
Under each Item Number can be many Key Numbers
The issue: Key numbers start at "001" and can go up to "602", and cannot
duplicate on a project. Each project starts the key numbers at 001, but they
don't alwzys correspond with certain item numbers. So on a project we have
the following example:
Project #5432 / Item #01 / Key 001
Project #5432 / Item #01 / Key 002
Project #5432 / Item #01 / Key 003
Project #5432 / Item #02 / Key 004
Project #5432 / Item #03 / Key 005
Project #6868 / Item #01 / Key 001
Project #6868 / Item #02 / Key 002
Project #6868 / Item #02 / Key 003
Project #6868 / Item #02 / Key 004
Is there a way to sort of AutoNumber the Key field and allow it to start
back at 001 for each project number? Is there then a way to have new records
in the Key Table default to the next available key number? I don't want
users to have to search the records that relate to each item number to try
and find what the next key number should be.
I hope all this makes sense! Any input or suggestion is appreciated!