I have 2 variables in one select statement. I can put one in at a time and the select works, both in and I end up with no errors but a blank datagridview. Using SQL 2005 and VB.Net (Visual Studio 2008)
TextBox1.Text = str_item_column
TextBox2.Text = str_item_type
Dim SQL As String = "select * from item_table where '" + str_item_column +'" = '" + str_item_type + "'"
Any help is appreciated.
TIA
TextBox1.Text = str_item_column
TextBox2.Text = str_item_type
Dim SQL As String = "select * from item_table where '" + str_item_column +'" = '" + str_item_type + "'"
Any help is appreciated.
TIA