J
JD McLeod
I have run into a report problem and that got me to thinking that maybe my
problem was with my database design. My database has business risks in it.
Each risk can only appear one time. Also included are controls that mitigate
those risks. A control, however, can appear multiple times since one control
can mitigate different risks. I have worked through my form issues and those
are functioning the way I want. I am now trying to create a report and I am
running into difficulties. Here is what I have
RiskTable
RiskID (autonumber)
RiskDescription
Likelihood
Impact
ControlTable
ControlID (autonumber)
ControlDescription
Frequency
Type
RiskControlTable (my third table where I match up the risks with the
applicable controls)
RiskControlID (autonumber)
RiskID (my form has a combo box that looks up the risk ids for the user to
choose from – the database doesn’t allow duplicates, so each risk ID can only
be chosen one time)
ControlID1(combo box on the form that looks back at the controls table)
ControlID2
ControlID3
ControlID4
The form used to link the controls to the risk has combo boxes that lets the
user select one risk and then assign multiple controls to it. Each control
ID is stored in a separate field in the RiskControlTable (i.e. ControlID1, 2,
3, etc.) There is no limit to how many times a control can be used. It
could be used on only one risk or on 10 different risks.
On my report I am struggling with how to get the report to show the risk one
time and then show all of the applicable controls with their other criteria
such as frequency, type, etc. I have a feeling that I may have a problem
with my database design as it relates to the riskcontrol table. Any help
would be appreciated. Thanks.
problem was with my database design. My database has business risks in it.
Each risk can only appear one time. Also included are controls that mitigate
those risks. A control, however, can appear multiple times since one control
can mitigate different risks. I have worked through my form issues and those
are functioning the way I want. I am now trying to create a report and I am
running into difficulties. Here is what I have
RiskTable
RiskID (autonumber)
RiskDescription
Likelihood
Impact
ControlTable
ControlID (autonumber)
ControlDescription
Frequency
Type
RiskControlTable (my third table where I match up the risks with the
applicable controls)
RiskControlID (autonumber)
RiskID (my form has a combo box that looks up the risk ids for the user to
choose from – the database doesn’t allow duplicates, so each risk ID can only
be chosen one time)
ControlID1(combo box on the form that looks back at the controls table)
ControlID2
ControlID3
ControlID4
The form used to link the controls to the risk has combo boxes that lets the
user select one risk and then assign multiple controls to it. Each control
ID is stored in a separate field in the RiskControlTable (i.e. ControlID1, 2,
3, etc.) There is no limit to how many times a control can be used. It
could be used on only one risk or on 10 different risks.
On my report I am struggling with how to get the report to show the risk one
time and then show all of the applicable controls with their other criteria
such as frequency, type, etc. I have a feeling that I may have a problem
with my database design as it relates to the riskcontrol table. Any help
would be appreciated. Thanks.