Syntax error converting the varchar value 'System.Data.DataRowView' to a column of data type int. please help i am code which is below <pre lang="vb">myconn = New SqlConnection("data source=nic-bpdc;Initial Catalog=pension;integrated security=sspi;") myconn.Open() cmd.Connection = myconn cmd.CommandText = ("select ppo_no from billentry where token_no ='" & ComboBox1.Text & "'") 'cmd.CommandText = ("select ppo_no, p_name,sec,billdate,state from billentry where token_no ='" & ComboBox1.Text & "'") rd = cmd.ExecuteReader() While (rd.Read()) TextBox5.Text = rd!ppo_no 'TextBox4.Text = rd!p_name ''TextBox3.Text = rd!billamount 'ComboBox4.Text = rd!sec 'DateTimePicker2.Text = rd!billdate 'TextBox2.Text = rd!state End While 'rd.Close() myconn.Close()</pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)