Here is the code that I am using,
Dim sqlcom1 As SqlCommand = New SqlCommand("SELECT * " & _
"FROM TABEL1 " & _
"WHERE VAR1 = '" & cmb_VAR1.Text & "'")
Dim reader_recode As SqlDataReader
reader_recode = sqlcom1.ExecuteReader
rtb_DATA1.Text = reader_recode("DATA1")
I get an error when using Option Strict On. If I turn that off, things are fine, but I would like to code this correctly.
Here is the error:
Option Strict On disallows implicit conversions from 'System.Object' to 'String'.