G
Guest
I am using Access 2003. I have a main form (frmAnalysis) based on a table
called tblAnalysis. FrmAnalysis has a bound control called EquipmentName.
The main form also has a button that opens a subform (subHazard) based on a
table called tblHazard. TblAnalysis and tblHazard are related through the
AnalysisID field.
The subHazard form consists of 32 bound check box controls named A, B, C, up
to FF. When this subHazard form opens, I want certain checkboxes selected
based on the EquipmentName selected on the frmAnalysis main form.
To know which checkboxes should be selected for each EquipmentName, in an
unrelated table called tblEqupment I have fields named EquipName,
DefaultHazard1, DefaultHazard2, etc. up to DefaultHazard6. In the
DefaultHazard1 field I might enter D, in DefaultHazard2 field I might enter
F, and so on.
Basically, what I am trying to do is if EquipmentName = “Pump1†on
frmAnalysis then look up the default Hazards for Pump1 in tblEquipment and
then open the subHazard form to a new record with the corresponding
checkboxes already selected. I want to allow the user to uncheck the boxes
again if necessary.
Some equipment may have no default hazards; others may have up to 6.
Any suggestions would be greatly appreciated.
called tblAnalysis. FrmAnalysis has a bound control called EquipmentName.
The main form also has a button that opens a subform (subHazard) based on a
table called tblHazard. TblAnalysis and tblHazard are related through the
AnalysisID field.
The subHazard form consists of 32 bound check box controls named A, B, C, up
to FF. When this subHazard form opens, I want certain checkboxes selected
based on the EquipmentName selected on the frmAnalysis main form.
To know which checkboxes should be selected for each EquipmentName, in an
unrelated table called tblEqupment I have fields named EquipName,
DefaultHazard1, DefaultHazard2, etc. up to DefaultHazard6. In the
DefaultHazard1 field I might enter D, in DefaultHazard2 field I might enter
F, and so on.
Basically, what I am trying to do is if EquipmentName = “Pump1†on
frmAnalysis then look up the default Hazards for Pump1 in tblEquipment and
then open the subHazard form to a new record with the corresponding
checkboxes already selected. I want to allow the user to uncheck the boxes
again if necessary.
Some equipment may have no default hazards; others may have up to 6.
Any suggestions would be greatly appreciated.