Next issue...
Just trying to get the record (sentence) that contains the exact string.
When using LIKE '%string%' I will get all records that include partial matches.
Example.... "help" and "helpful"
But, if I just want to include records that use just "help" ('please help this old man') - <-- returned record
I have tried this... But get no records returned, but I know there are records because using LIKE '%help%' returns "help" and "helpful"
CODE - DOESN'T WORK
Is there a better way to do this?
Just trying to get the record (sentence) that contains the exact string.
When using LIKE '%string%' I will get all records that include partial matches.
Example.... "help" and "helpful"
But, if I just want to include records that use just "help" ('please help this old man') - <-- returned record
I have tried this... But get no records returned, but I know there are records because using LIKE '%help%' returns "help" and "helpful"
CODE - DOESN'T WORK
Code:
Dim da As New SQLiteDataAdapter("select * from main WHERE Scripture LIKE '%[" & txtSearch.Text & ",%' Or Scripture LIKE '%," & txtSearch.Text & ",%' Or Scripture LIKE '%," & txtSearch.Text & "]%'", connection)