Original Post
Hi. I'm trying to execute a Select Case statement in Visual Basic. See code:
Select Case Box1.Text
Select Case name
Case "bob" or "joe"
other code here
Case "phil" or "john"
other code here
End Select
End Select Anyway, when I use those 'or' statements I get an error saying: Conversion from string "bob" to type 'Long' is not valid. To get to this the user entered one of those names into a textbox and clieck a button. How can I get this working?