I am very new at this and not very familiar with VBA, and hope someone can help me here. I need the Text Box to automatically update when values are chosen from 2 or more Combo Boxes. This is the code I have in my text box properities [Event Procedure]. If I put the code OnClick, it works but I want the value on the text box to show up automatically without having to click.
Code:
Private Sub Value_AfterUpdate()
If Me.ComboBox1.Value = "Director" And Me.ComboBox2.Value = "NATIONAL" And Me.ComboBox3.Value = "Oral" Then TextBox.Value = "1"
ElseIf Me. ComboBox1.Value = "CFO" And Me.ComboBox2.Value = "NATIONAL" And ComboBox3 = "Oral" Then
TextBox.Value = "2"
Else
[TextBox] = "0"
End If
End Sub
Thank you.