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:
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.
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]")
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.