Hi, This may seem simple to some, but I can't get it working. I need to load different sets of lists into a combo box depending on the value code that is in a text box (this is just 2 sets below).

On the form, the text box "txtEventType.Text" gets loaded by a process on a previous form. Then once on this form, that box's value is shown on this form. Then the Form_Load() sub needs to read that text box and load the values of the combo box depending on the contents of the text box. Simple enough, but I can't get it to work. Here is my code, can you make it better?

Private Sub Form_Load()
If txtEventType.Text = "SWQ" Then
ResultsComboBox.AddItem ("2ND")
ResultsComboBox.AddItem ("3RD")
ResultsComboBox.AddItem ("INC")
ElseIf txtEventType.Text = "WF1" Then
ResultsComboBox.AddItem ("PASS")
ResultsComboBox.AddItem ("FAIL")
End If
End Sub

Since the form object that I am trying to access is a text box and what I am trying to compare it with is a text string literal in quotes, why is that not working? Teach me something, please.