I am working on a database project for a shipping company. There are 6 different vessels that need to go through various inspections. Some inspections are the same for all boats, some are unique to a certain vessel. I have the following tables:
-Inspections which lists ALL inspections with their time intervals. Fields: "InspectionID", "InspectionName", "InspectionInterval"
-Vessels which has the 6 different vessels. "VesselID", "VesselName"
-VesselInspections which contains VesselIDs with InspectionIDs next to them to associate all vessels with the inspections they need. Example:
"Vessel1":"Inspection1"
Vessel1":"Inspection2"
Vessel2":"Inspection2"
Fields: "VesselID", "InspectionID"
-InspectionHistory which records all inspections ever performed. "VesselInspectionsID", "DateCompleted"
I have a form called "FrmInspectionHistory" with two fields:
Select VesselInspection (combo box) and Date Completed (text box). The combo box contains a query that pulls up VesselID, VesselName, InspectionID and InspectionName but only displays VesselName and InspectionName when used. I wanted to streamline the process even further and have the two boxes. First the VesselName is selected in the first combo, which uses TblVesselInspections to pull up the inspections relevant to that particular vessel in the next combo. This should populate TblInspectionHistory accordingly.