Dim disp As String = " Select Item_desc From Item_Master where Part_no=51" obj.SetCon() cmd.CommandText = disp cmd.Connection = obj.SetCon rd = cmd.ExecuteReader If rd.Read = True Then txtItemDesc.Text = rd("Item_desc") End If con.Close()
Dim disp As String = (" Select Item_desc From Item_Master where Part_no='" & cmbPartNo.Text & "'")
Operator '&' is not defined for string " Select Item_desc From Item_Mast" and type 'DataRowView'
SELECT Item_desc FROM Item_master WHERE Part_no = '" + CInt(cmbPartNo.SelectedText) + "'
SELECT Item_desc FROM Item_master WHERE Part_no = '" + cmbPartNo.SelectedItem.ToString + "'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)