I have attached my question.
I am having some problems with the attached question. Well here is my code:
Dim Name As String
Name = TextBox1.Text
If Name = TextBox1.Text And radLT20.Checked = True Then
txtDisplay.Text = "Name is aged below 20"
ElseIf Name = TextBox1.Text And rad20To40.Checked = True Then
txtDisplay.Text = "Name is aged between 20 and 40"
ElseIf Name = TextBox1.Text And radGT40.Checked = True Then
txtDisplay.Text = "Name is aged above 40"
End If
What is wrong with my code is that when i click on the OK button i want the name that i entered in txtName to display. How can i do it???