Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15729

[SOLVED] Sqlite - Use AND or OR within the same Field

$
0
0
Okay... this is a weird request. Google turned up nothing.

I know how to do a statement... to get a record based off of one string. This works fine.
Code:

Dim da As New SQLiteDataAdapter("select * from main WHERE Scripture LIKE '%" & txtSearch.Text & "%'", connection)
However, I want to allow either AND or OR as an option to search inside the SAME SCRIPTURE field. Not other column fields

The idea is that I want to be able to search for two separate words within the same field.
Then I can add some radialbuttons to flag AND or OR with a textbox for the second string.
So, I would pass 2 string to the same field.


Is this even possible??

Viewing all articles
Browse latest Browse all 15729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>