G
Guest
I have a listbox that pulls data from an access database through the OLEDBDataAdapter. In the same project I have OLEDBDataAdapter Command using SQL that's referencing the selected item in the listbox. I get an error in "Fill" command. The reason being I think is that I'm trying to convert a datarowview to a string in my SQL. Here's the SQL.
"select * from '" & ListBox1.SelectedItem.ToString & "' where Entity = '" & ComboBox1.Text.Trim & "'", MyConnection)
The oddity of it all is that the "ComboBox1.Text.Trim" has a similar relationship where it's being filled through an OLEDBDataAdapter. The SQL substitutes combobox1.text into query.
Any help appreciated. I've been stuck on this line for two weeks.
thanks
"select * from '" & ListBox1.SelectedItem.ToString & "' where Entity = '" & ComboBox1.Text.Trim & "'", MyConnection)
The oddity of it all is that the "ComboBox1.Text.Trim" has a similar relationship where it's being filled through an OLEDBDataAdapter. The SQL substitutes combobox1.text into query.
Any help appreciated. I've been stuck on this line for two weeks.
thanks