MuscatCalling
Technical User
Hi,
I am tracking employees, their trades, the equipment that they are authorised to work on, and the tasks that they are authorised for on that equipment.
Although a few instances may occur where a combination of variables is not permissible, after reviewing existing hard copy records I estimate over 95% of all possible combinations of all four variables are possible. That is, effectively none of the variables are functionally dependent upon any other variable.
I have set up tables for tblPersonnel, tblEquipment, tblTrade, tblTask. I then set up junction tables with composite keys for:
tblPersonnelTradeDetails (PersonnelID, TradeID)
tblPersonnelEquipmentDetails (PersonnelID, EquipmentID)
tblPersonnelTaskDetails (PersonnelID, TaskID)
tblEquipmentTradeDetails (EquipmentID, TradeID)
tblEquipmentTaskDetails (EquipmentID, TaskID)
tblTradeTaskDetails (TradeID, TaskID)
All tables have referential integrity enforced with cascading updates.
I have populated tblPersonnel, tblEquipment, tblTrade, tblTask with data. The junction tables use lookup functions to these tables. I can input data into the junction tables individually, and a select query based on all six junction tables returns the correct recordsets.
I now need to develop a form….. I want to select PersonnelID, enter the trade(s) for which the individual is authorized, enter the equipment(s) against each trade(s), and then enter the task(s) against each equipment/trade (forms and subforms?) This is where I have hit a wall… I have a form for PersonnelID and a subform based on the select query. I can enter data into the form, but cannot save it. The error message states that there is no matching record in tblTrade... This occurs even with the form (and subform) properties set to Dynaset (inconsistent updates).
Any suggestions?
Best regards,
Mark
I am tracking employees, their trades, the equipment that they are authorised to work on, and the tasks that they are authorised for on that equipment.
Although a few instances may occur where a combination of variables is not permissible, after reviewing existing hard copy records I estimate over 95% of all possible combinations of all four variables are possible. That is, effectively none of the variables are functionally dependent upon any other variable.
I have set up tables for tblPersonnel, tblEquipment, tblTrade, tblTask. I then set up junction tables with composite keys for:
tblPersonnelTradeDetails (PersonnelID, TradeID)
tblPersonnelEquipmentDetails (PersonnelID, EquipmentID)
tblPersonnelTaskDetails (PersonnelID, TaskID)
tblEquipmentTradeDetails (EquipmentID, TradeID)
tblEquipmentTaskDetails (EquipmentID, TaskID)
tblTradeTaskDetails (TradeID, TaskID)
All tables have referential integrity enforced with cascading updates.
I have populated tblPersonnel, tblEquipment, tblTrade, tblTask with data. The junction tables use lookup functions to these tables. I can input data into the junction tables individually, and a select query based on all six junction tables returns the correct recordsets.
I now need to develop a form….. I want to select PersonnelID, enter the trade(s) for which the individual is authorized, enter the equipment(s) against each trade(s), and then enter the task(s) against each equipment/trade (forms and subforms?) This is where I have hit a wall… I have a form for PersonnelID and a subform based on the select query. I can enter data into the form, but cannot save it. The error message states that there is no matching record in tblTrade... This occurs even with the form (and subform) properties set to Dynaset (inconsistent updates).
Any suggestions?
Best regards,
Mark