Here is the situation, I have a main form that loads that has a combo box on it that is locked and not enabled. I've made another form that will allow the combo box to either be unlocked and enabled, or have the default value changed to a value on the form. I've written some code but it doesn't seem to have any effect. Can anyone find the problem:
Private Sub Set_All_Click()
Form_frm_choose_location.Location_ID_frm.Enabled = True
Form_frm_choose_location.Location_ID_frm.Locked = False
End Sub
Private Sub Set_Click()
Form_frm_choose_location.Location_ID_frm.Enabled = False
Form_frm_choose_location.Location_ID_frm.Locked = True
Form_frm_choose_location.Location_ID_frm.DefaultValue = Me.Location
End Sub
Private Sub Set_All_Click()
Form_frm_choose_location.Location_ID_frm.Enabled = True
Form_frm_choose_location.Location_ID_frm.Locked = False
End Sub
Private Sub Set_Click()
Form_frm_choose_location.Location_ID_frm.Enabled = False
Form_frm_choose_location.Location_ID_frm.Locked = True
Form_frm_choose_location.Location_ID_frm.DefaultValue = Me.Location
End Sub