If ssearch.Text <> "" Then
cmdOLEDB.CommandText = "SELECT StudentID FROM Students WHERE StudentID = " & (ssearch.Text) & " ; "
cmdOLEDB.Connection = cnnOLEDB
I have tried many solution but none of them helped. Either they pop out a no value etc etc and this error. I'm trying to search Student ID
from my access and display it out. Is there an error in the above part. ssearch.text
is the textbox
in which I type the number I want to search.