I have a problem with SQL, I am trying to make the SQL statment to read the textbox, but couldn't. In TextBox if users enter 100, it the SQL in Where Clause it will know ID = 100, and if if users enter 150, it will know ID = 150. The the SQL below, it did not give me any error, but as the same time it did not give my back any data. Blank DatagridView. I don't have any idea how to fix this. Please guide me. Thank you.
[NOTE] I don't have dataset in my form. I use code to open connection and get the data I want from the database table.
[NOTE] I don't have dataset in my form. I use code to open connection and get the data I want from the database table.
Dim IDSearch As New OracleClient.OracleDataAdapter("SELECT Name, ID, Test, Last, First, Status
FROM Test
WHERE (Status is not Null) and (ID = ' " & Form1.IDTextBox.Text & " ' )" , conn)