F
FA
Hi All
On my subform i have a combo box called Finding Combo, the following
are the codes in after update event of the combo box,
Me.FINDG_STD_ID = DLookup("[FINDG_STD_ID]", "dbo_STD_FINDG",
"[FINDG_STD_ID] = " & Me.Combo54)
Me.FINDG_NME = DLookup("[FINDG_NME]", "dbo_STD_FINDG", "[FINDG_STD_ID]
= " & Me.Combo54)
Me.OWASP_CLS = DLookup("[OWASP_CLS]", "dbo_STD_FINDG", "[FINDG_STD_ID]
= " & Me.Combo54)
Me.SANS_TOP10 = DLookup("[SANS_TOP10]", "dbo_STD_FINDG",
"[FINDG_STD_ID] = " & Me.Combo54)
Me.CVE_NO = DLookup("[CVE_NO]", "dbo_STD_FINDG", "[FINDG_STD_ID] = " &
Me.Combo54)
Me.STD_RSK = DLookup("[STD_RSK]", "dbo_STD_FINDG", "[FINDG_STD_ID] = "
& Me.Combo54)
Its populating the values of Me.STD_RSK from a table.
Here is my problem, I have another combo box called CboRskLVL, I want
to prepopulate that combo box according the value in Me.STD_RSK. Since
CboRskLVL is not a field in table dbo STD_FINDING otherwise i could do
something like that for that combo box too.
Here is my code, Since this form is a subform i can not put it in the
form load event because it will only do it once and after someone
change the record from the combo box, it will not work because it will
not load again.
If Me.STD_RSK.Value = "High" Then
Me.FINDG_RSK_LVL_ID.Value = Me.CboRskLVL.ItemData(3)
End If
If Me.STD_RSK.Value = "Medium" Then
Me.FINDG_RSK_LVL_ID.Value = Me.CboRskLVL.ItemData(2)
End If
If Me.STD_RSK.Value = "Low" Then
Me.FINDG_RSK_LVL_ID.Value = Me.CboRskLVL.ItemData(1)
End If
I want the value of CboRskLVL change after STD_RSK gets a new value
which happens after the user select something in the Combo54 and it
DLookup the value for STD_RSK. I want to know where should i put this
code so everything STD_RSK change, CboRskLVL change
Can some help me please
On my subform i have a combo box called Finding Combo, the following
are the codes in after update event of the combo box,
Me.FINDG_STD_ID = DLookup("[FINDG_STD_ID]", "dbo_STD_FINDG",
"[FINDG_STD_ID] = " & Me.Combo54)
Me.FINDG_NME = DLookup("[FINDG_NME]", "dbo_STD_FINDG", "[FINDG_STD_ID]
= " & Me.Combo54)
Me.OWASP_CLS = DLookup("[OWASP_CLS]", "dbo_STD_FINDG", "[FINDG_STD_ID]
= " & Me.Combo54)
Me.SANS_TOP10 = DLookup("[SANS_TOP10]", "dbo_STD_FINDG",
"[FINDG_STD_ID] = " & Me.Combo54)
Me.CVE_NO = DLookup("[CVE_NO]", "dbo_STD_FINDG", "[FINDG_STD_ID] = " &
Me.Combo54)
Me.STD_RSK = DLookup("[STD_RSK]", "dbo_STD_FINDG", "[FINDG_STD_ID] = "
& Me.Combo54)
Its populating the values of Me.STD_RSK from a table.
Here is my problem, I have another combo box called CboRskLVL, I want
to prepopulate that combo box according the value in Me.STD_RSK. Since
CboRskLVL is not a field in table dbo STD_FINDING otherwise i could do
something like that for that combo box too.
Here is my code, Since this form is a subform i can not put it in the
form load event because it will only do it once and after someone
change the record from the combo box, it will not work because it will
not load again.
If Me.STD_RSK.Value = "High" Then
Me.FINDG_RSK_LVL_ID.Value = Me.CboRskLVL.ItemData(3)
End If
If Me.STD_RSK.Value = "Medium" Then
Me.FINDG_RSK_LVL_ID.Value = Me.CboRskLVL.ItemData(2)
End If
If Me.STD_RSK.Value = "Low" Then
Me.FINDG_RSK_LVL_ID.Value = Me.CboRskLVL.ItemData(1)
End If
I want the value of CboRskLVL change after STD_RSK gets a new value
which happens after the user select something in the Combo54 and it
DLookup the value for STD_RSK. I want to know where should i put this
code so everything STD_RSK change, CboRskLVL change
Can some help me please