I would like this thread to be closed. I found out the error to be the following:
Dim sql As String = "select ....'" + txtClaimNum.Text + "'"
Dim conn As SqlConnection = New SqlConnection(connString)
Dim cmd As SqlCommand = New SqlCommand(sql, conn)
Try
conn.Open()
Dim rdr As SqlDataReader = cmd.ExecuteReader
While rdr.Read
txtInsuredName.Text = rdr(0).ToString
txtClaimant.Text = rdr(1).ToString
txtDateReported.Text = rdr(2).ToString
txtDateofLoss.Text = rdr(3).ToString
End While
Catch ex As Exception
MsgBox(
"Error: " & ex.ToString)
End Try
conn.Close()
End If