Hi Folks,
I'm looking to modify the Row Source of a couple Combo Boxes on a form based upon whether or not a check box is True or False.
Is there a way to do this through one of the Combo Box properties? (e.g.: obviously "AfterUpdate" wouldn't work since the Row Source needs to be modified prior to the Combo Box being clicked).
Currently, I have it in the AfterUpdate Property on the Check Box control but curious if there's another way to incorporate it.
Code:Private Sub chkRCActiveYN_AfterUpdate() Dim strSQL As String strSQL = "SELECT SEC_ROLE_LISTING.RLS_ID, SEC_ROLE_LISTING.RLS_NAME " & _ " FROM SEC_ROLE_LISTING " & _ " WHERE SEC_ROLE_LISTING.RLS_ENABLED_YN = 'Y'" & _ " ORDER BY SEC_ROLE_LISTING.RLS_NAME" If Me!chkRCActiveYN = True Then Me!cboNETRoleCompare1.RowSource = strSQL Me!cboNETRoleCompare2.RowSource = strSQL End If End Sub