FoxProProgrammer
Programmer
Hi,
I created a database to track the repair of equipment. The database works fine. The user now wants to add functionality to track the repair of subassemblies that were pulled from the equipment.
Repair Level 1: A technician pulls a defective circuit board from the equipment and installs a good circuit board in its place.
Repair Level 2: A technician repairs the circuit board that was pulled from the equipment. This requires replacing specific components on the circuit board, such as integrated circuits, resistors, capacitors, etc.
Each repair requires a Work Order (Job).
I created a database about a year ago that allows the user to look up parts used on the circuit boards. This was well before they wanted to track the repair of the assemblies or subassemblies. Here is the structure of each database:
Repair Level 1:
tbl_jobs
jobID, Autonumber (primary key)
jobNum, Text
date_completed, Date
Item_Repaired, Integer
Item_SN, Integer
comments, Text
No_Fault_Found, Yes/No
CustomerID, Integer
EndItem, Integer
tbl_subassembly
PartID, Autonumber (primary key)
PartNum, Text
Description, Text
Repairable, Yes/No
tbl_parts_replaced
JobID, Integer (Foreign key to tbl_jobs)
PartID, Integer (Foreign key to tbl_subassembly)
PartSN, Integer
Repair Level 2:
tbl_lower_assembly
assemblyID, Autonumber (Primary key)
part_number Text
description, Text
tbl_part_numbers
PartID, Autonumber (primary key)
PartNumber, Text
TypeID, Integer (foreign key to tbl_type)
Description
tbl_subassembly_components
PartID, integer (Foreign key to tbl_part_numbers)
subassemblyID (Integer) (Foreign key to tbl_subassembly)
circuitID, Text
notes, Text
tbl_type
TypeID, Autonumber (Primary key)
Type, Text
I already modified the data in tbl_subassembly to merge tbl_lower_assembly and tbl_subassembly together. The question now is whether I should use tbl_jobs to collect data on both the assembly and subassembly repair. The two choices seem to be:
1. Continue using tbl_jobs only for the upper level assembly repair. Create a new table to store repair jobs for the subassemblies.
2. Add the subassembly jobs to tbl_jobs.
While option 2 would allow tracking of all jobs in a single table, it has some drawbacks. For example, some of the fields in tbl_jobs aren't applicable to subassembly repair. The database needs to store the level of repair. If I use tbl_jobs for both levels of repair, it seeems as if I would have to add a field to identify whether the repair level is 1 or 2.
Does anyone have a recommendation for how to structure what is basically the merger of these two databases?
Thanks very much for your time!
dz
I created a database to track the repair of equipment. The database works fine. The user now wants to add functionality to track the repair of subassemblies that were pulled from the equipment.
Repair Level 1: A technician pulls a defective circuit board from the equipment and installs a good circuit board in its place.
Repair Level 2: A technician repairs the circuit board that was pulled from the equipment. This requires replacing specific components on the circuit board, such as integrated circuits, resistors, capacitors, etc.
Each repair requires a Work Order (Job).
I created a database about a year ago that allows the user to look up parts used on the circuit boards. This was well before they wanted to track the repair of the assemblies or subassemblies. Here is the structure of each database:
Repair Level 1:
tbl_jobs
jobID, Autonumber (primary key)
jobNum, Text
date_completed, Date
Item_Repaired, Integer
Item_SN, Integer
comments, Text
No_Fault_Found, Yes/No
CustomerID, Integer
EndItem, Integer
tbl_subassembly
PartID, Autonumber (primary key)
PartNum, Text
Description, Text
Repairable, Yes/No
tbl_parts_replaced
JobID, Integer (Foreign key to tbl_jobs)
PartID, Integer (Foreign key to tbl_subassembly)
PartSN, Integer
Repair Level 2:
tbl_lower_assembly
assemblyID, Autonumber (Primary key)
part_number Text
description, Text
tbl_part_numbers
PartID, Autonumber (primary key)
PartNumber, Text
TypeID, Integer (foreign key to tbl_type)
Description
tbl_subassembly_components
PartID, integer (Foreign key to tbl_part_numbers)
subassemblyID (Integer) (Foreign key to tbl_subassembly)
circuitID, Text
notes, Text
tbl_type
TypeID, Autonumber (Primary key)
Type, Text
I already modified the data in tbl_subassembly to merge tbl_lower_assembly and tbl_subassembly together. The question now is whether I should use tbl_jobs to collect data on both the assembly and subassembly repair. The two choices seem to be:
1. Continue using tbl_jobs only for the upper level assembly repair. Create a new table to store repair jobs for the subassemblies.
2. Add the subassembly jobs to tbl_jobs.
While option 2 would allow tracking of all jobs in a single table, it has some drawbacks. For example, some of the fields in tbl_jobs aren't applicable to subassembly repair. The database needs to store the level of repair. If I use tbl_jobs for both levels of repair, it seeems as if I would have to add a field to identify whether the repair level is 1 or 2.
Does anyone have a recommendation for how to structure what is basically the merger of these two databases?
Thanks very much for your time!
dz