E
Eva
Hi,
Im trying to use the SQLReader to populate a combobox. I
am running a stored procedure that selects a single
coloumn from a table. can anyone help me on what to
write. here is what i have done so far.
Try
Cn.Open()
Dim reader As SqlDataReader = cmd.ExecuteReader
While reader.Read
ComboBox1.Items.Add(reader.GetSqlString())
End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
Cn.Close()
End Try
The reader.GetSqlString is being rejected for some
reason. Does anyone know why?
Im trying to use the SQLReader to populate a combobox. I
am running a stored procedure that selects a single
coloumn from a table. can anyone help me on what to
write. here is what i have done so far.
Try
Cn.Open()
Dim reader As SqlDataReader = cmd.ExecuteReader
While reader.Read
ComboBox1.Items.Add(reader.GetSqlString())
End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
Cn.Close()
End Try
The reader.GetSqlString is being rejected for some
reason. Does anyone know why?