I want the user-chosen value in a combo box to determine the control source for a text box. I thought it would be as simple as:
Private Sub TextBox1_Change()
If AB1 = "January" Then
TextBox1.ControlSource = C5
ElseIf AB1 = "February" Then TextBox1.ControlSource = C6
ElseIf AB1 = "March" Then TextBox1.ControlSource = C7
ElseIf AB1 = "April" Then TextBox1.ControlSource = C8
End If
End Sub
Where AB1 is the control source for the combo box. Apparently it's not that simple - I'm not getting any debugging errors, but it just doesn't seem to work.
Any suggestions?
Bookmarks