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

[RESOLVED] database filtering with first and last name together

$
0
0
can someone write correct syntax for sql command which filter ListView items according to the first and last name written in the same textbox?

I have no problems with LastName only. It looks something like this:

Code:

myConn.Con2DB("SELECT * FROM [aptable] WHERE LastName LIKE'" & Filter_tbox & "%' ORDER BY [LastName]")
Filter_tbox is value from textbox control used for dynamic reducing of items after every new inserted.letter.


But I need to continue with reducing after all letters from LastName are added. That means,
to filter with FirstName table field after that.

For example, we type 'S' 'm' 'i' 't' 'h' in our textbox. After every new letter listview list is more and more short. As the result, we can have too many people with this last name. Therefore we continue with typing ' ' (space) and the rest of person's name, let's say, 'J' 'o' 'h' 'n'.



BTW I'm using MDB file format in this case.

Viewing all articles
Browse latest Browse all 42292

Trending Articles



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