My combo boxes are all activated

david.paton

Registered User.
Local time
Today, 12:03
Joined
Jun 26, 2013
Messages
338
I have a form tblChild Subform2 that has a combo box for relationship at the end. Upon selecting the checkbox, I want the combo box for that record enabled but when I select it, it activates the checkboxes for every record.
 

Attachments

Yes, the combobox will be activated for every record. This is because you are programmatically setting a property for the combobox and there really is only 1 combobox. So the property setting will be reflected in all instances of the combobox.

Use Conditional Formatting instead of VBA.
 
How do I use conditional formatting to do that?
 
Use the Current Event of the subform:

Private Sub Form_Current()
on error resume next
Call chkRelated_AfterUpdatr
End Sub
 
If I unselect a checkbox I want the combo box to clear. Can someone help me with that code please?
 
On the Check Box AfterUpdate Event:

Code:
If Me.YourCheckBox = False Then
     Me.YourComboBox = “” ‘ or Null if it is a number 
End If
 

Users who are viewing this thread

Back
Top Bottom