S
Seth
I am developing a database to record which archive box a particular report is
stored in.
Archive boxes can be moved to different storage locations.
Each archive box can contain a number of compartments. eg. Archive box 1000
contains 1000A, 1000B, 1000C and 1000D. But an archive box dose not
necessarily contain any compartments. eg. Archive box 2000 is just 2000
without any compartments.
When the user enters a new archive box into the database I want them to
enter the BoxNumber, NumberOfCompartments, and StorageLocation. My database
will automatically generate 1000A, 1000B, 1000C, and 1000D from BoxNumber and
NumberOfCompartments.
At the moment I will try to do this with 3 tables. But it doesn’t look quite
right to me.
Any suggestions appreciated. After I’ve designed the tables and
relationships I need to work out how to automatically generate the
compartment numbers. from NumberOfCompartments.
tblReports
fldReportID (x)MANY
[+ other fields]
tblArchiveBoxes (x)ONE
fldArchiveBoxNum
fldArchiveBoxCompartment
fldArchiveBoxStorageLctn (y)MANY
tblStorageLocations
StorageLctnID (y)ONE
StorageLctn
StorageLctnSite
tblArchiveBoxes
fldArchiveBoxNum,fldArchiveBoxCompartment,fldArchiveBoxStorageLctn
1000,A,Office
1000,B,Office
1000,C,Office
1000,D,Office
2000,,Factory
3000,A,Factory
3000,B,Factory
4000,Office
Regards,
Seth
stored in.
Archive boxes can be moved to different storage locations.
Each archive box can contain a number of compartments. eg. Archive box 1000
contains 1000A, 1000B, 1000C and 1000D. But an archive box dose not
necessarily contain any compartments. eg. Archive box 2000 is just 2000
without any compartments.
When the user enters a new archive box into the database I want them to
enter the BoxNumber, NumberOfCompartments, and StorageLocation. My database
will automatically generate 1000A, 1000B, 1000C, and 1000D from BoxNumber and
NumberOfCompartments.
At the moment I will try to do this with 3 tables. But it doesn’t look quite
right to me.
Any suggestions appreciated. After I’ve designed the tables and
relationships I need to work out how to automatically generate the
compartment numbers. from NumberOfCompartments.
tblReports
fldReportID (x)MANY
[+ other fields]
tblArchiveBoxes (x)ONE
fldArchiveBoxNum
fldArchiveBoxCompartment
fldArchiveBoxStorageLctn (y)MANY
tblStorageLocations
StorageLctnID (y)ONE
StorageLctn
StorageLctnSite
tblArchiveBoxes
fldArchiveBoxNum,fldArchiveBoxCompartment,fldArchiveBoxStorageLctn
1000,A,Office
1000,B,Office
1000,C,Office
1000,D,Office
2000,,Factory
3000,A,Factory
3000,B,Factory
4000,Office
Regards,
Seth