B
BruceM
I am putting together a database to track various information about
equipment. Among the information being tracked is an inspection checklist.
The inspection will be performed at specified intervals. I need to save the
information from each inspection. Certain fields are common to all
inspections (InspectedBy, InspectionDate, and so forth). However, the
specific items to inspect are equipment-specific. For instance, one piece
of equipment may have as the inspection items:
ITEM TOLERANCE
Cords
Air pressure gauge ± 5 lbs.
Welds
Deflection 10°
Another piece of equipment may have:
Welds
Bearings
"Welds" is a common item for both pieces of equipment, but other items are
not, although they may be on the checklists for other equipment.
Tolerance information is not required for all items.
I can see that there should be a table for Inspections, related to the
Equipment table, so that each piece of equipment may have many inspections
over time. This would include the fields such as Inspector that are common
to all inspections.
The part I'm tripping over is the line items. The combination of items is
specific to a particular piece of equipment (although other equipment may
happen to have the same set of inspection items). This listing of items
should probably be related to the Equipment information, but unlike the
Inpsection record it consists of several records rather than a collection of
generic fields that need to be filled in. It also needs to be related to
the Inspection record.
I understand perfectly well that data are stored in tables, and that a form
is an interface to the data. However, I am going to describe the hoped-for
result at the form level, in the hope that it illustrates the question about
the underlying structure. I want to navigate to an Equipment record and
enter today's inpsection record. This includes fields such as Inpsector
that are common to all inspections, and a pre-determined list of inspection
items (Welds, Bearings, etc). Each item on that list needs information to
be recorded. Back to the earlier example:
ITEM TOLERANCE OK
Cords Yes
Air pressure gauge ± 5 lbs. Yes
Welds No
Deflection 10° Yes
OK is the only field that receives data during each inspection. The others
are part of the recurring checklist.
equipment. Among the information being tracked is an inspection checklist.
The inspection will be performed at specified intervals. I need to save the
information from each inspection. Certain fields are common to all
inspections (InspectedBy, InspectionDate, and so forth). However, the
specific items to inspect are equipment-specific. For instance, one piece
of equipment may have as the inspection items:
ITEM TOLERANCE
Cords
Air pressure gauge ± 5 lbs.
Welds
Deflection 10°
Another piece of equipment may have:
Welds
Bearings
"Welds" is a common item for both pieces of equipment, but other items are
not, although they may be on the checklists for other equipment.
Tolerance information is not required for all items.
I can see that there should be a table for Inspections, related to the
Equipment table, so that each piece of equipment may have many inspections
over time. This would include the fields such as Inspector that are common
to all inspections.
The part I'm tripping over is the line items. The combination of items is
specific to a particular piece of equipment (although other equipment may
happen to have the same set of inspection items). This listing of items
should probably be related to the Equipment information, but unlike the
Inpsection record it consists of several records rather than a collection of
generic fields that need to be filled in. It also needs to be related to
the Inspection record.
I understand perfectly well that data are stored in tables, and that a form
is an interface to the data. However, I am going to describe the hoped-for
result at the form level, in the hope that it illustrates the question about
the underlying structure. I want to navigate to an Equipment record and
enter today's inpsection record. This includes fields such as Inpsector
that are common to all inspections, and a pre-determined list of inspection
items (Welds, Bearings, etc). Each item on that list needs information to
be recorded. Back to the earlier example:
ITEM TOLERANCE OK
Cords Yes
Air pressure gauge ± 5 lbs. Yes
Welds No
Deflection 10° Yes
OK is the only field that receives data during each inspection. The others
are part of the recurring checklist.