B
Brian
I want to disable a couple of controls (text boxes) on a subform based on the
content of a combo box on the main form. It could work either in the
MyComboBox_AfterUpdate or SubForm_Enter. However, I cannot get it to work
from either of these, nor in the Activate or GotFocus of the subform. The
only place I got it to work was in the Current event of the subform, but it
is overkill to have it there, since that event fires on each current record
on the subform. Here is what I tried:
MyComboBox_AfterUpdate
If MyComboBox = "ABC" Then
Forms!MySubForm!MyControl.Enabled = False
Else
Forms!MySubForm!MyControl.Enabled = True
End If
End Sub
What am I missing?
content of a combo box on the main form. It could work either in the
MyComboBox_AfterUpdate or SubForm_Enter. However, I cannot get it to work
from either of these, nor in the Activate or GotFocus of the subform. The
only place I got it to work was in the Current event of the subform, but it
is overkill to have it there, since that event fires on each current record
on the subform. Here is what I tried:
MyComboBox_AfterUpdate
If MyComboBox = "ABC" Then
Forms!MySubForm!MyControl.Enabled = False
Else
Forms!MySubForm!MyControl.Enabled = True
End If
End Sub
What am I missing?