Visual Basic/SQL problem

Status
You're currently viewing only Kurt's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

Kurt

Ars Tribunus Angusticlavius
8,820
Subscriptor++
You'll need to put single quotes around the search string:

If OptfindCD = True Then
SqlStmt = "SELECT [CD Name], [Path], [File Name] from [CD Explorer] where [CD Name] = '" + txtsearch.Text + "'"
ElseIf optfindfile = True Then
SqlStmt = "SELECT [CD Name], [Path], [File Name] from [CD Explorer] where [File Name] = '" + txtsearch.Text + "'"
End If
 
Status
You're currently viewing only Kurt's posts. Click here to go back to viewing the entire thread.
Not open for further replies.