I understand it would be some kind of concatenation, yet I'm not sure how to go about it (Parameters, etc.). I am also curious on how to handle whether or not the user enters "FirstName LastName" or "LastName FirstName" in the text box. I suppose it would be the same logic just reversed.
Anyone ever done something like this who could provide insight? Here is what I have so far...
Expand|Select|Wrap|Line Numbers
- Private Sub Searchbtn_Click(sender As System.Object, e As System.EventArgs) Handles Searchbtn.Click
- Dim SQLConnection As New SqlClient.SqlConnection("Data Source=SQLTEST_HR,4000\SQLEXPRESS;Integrated Security=True")
- SQLConnection.Open()
- Dim SqlCommand As New SqlClient.SqlCommand("Select * FROM PARTICIPANT", SQLConnection)
- Dim SQLReader As SqlClient.SqlDataReader
- SQLReader = SqlCommand.ExecuteReader
- 'Need Parameter
- If SQLReader.Read Then
- End If