Hello
I'm using SELECT CASE statement for age cases
but I've two inputs years and months
Case 0 To 1
MS_lbl_category.Text = CStr("infant")
Case 1 To 2
MS_lbl_category.Text = CStr("toddlerI")
Case 2 To 6
MS_lbl_category.Text = CStr("kindergarten")
Case 6 To 12
MS_lbl_category.Text = CStr("child")
Case 12 To 19
MS_lbl_category.Text = CStr("teenager")
Case 19 To 25
MS_lbl_category.Text = CStr("young adult")
Case 25 To 40
MS_lbl_category.Text = CStr("adult")
Case 40 To 60
MS_lbl_category.Text = CStr("middle aged")
Case 60 To 120
MS_lbl_category.Text = CStr("senior citizen")
Case Else
MS_lbl_category.Text = CStr("Are you kidding ?")
when the input is 12 years and 6 months I want the program to print teenager
I'm not sure how to do that
and whenever I leave the months text box empty I need the program to just read the year without crashing