ugmos
02-23-2006, 08:03 PM
Hi all...
I did a search form...
when user write in the form: Moscow
The form give him all the results with the word Moscow
But when he write Moscow London the result is 0 entries...
BUT in the table we can find Moscow to London
And the search ignores this. cuz he search's full frase...
What should i do th show the user Moscow to London if he search Moscow london...
Here's the code:
Code:
strSQL = "SELECT marsh, polnyi, id " _
& "FROM Question " _
& "WHERE marsh LIKE '%" & Replace(strpoisk, "'", "''") & "%' " _
& "OR polnyi LIKE '%" & Replace(strpoisk, "'", "''") & "%' " _
& "ORDER BY id;"
Sorry for my English... and thank for your help!
I did a search form...
when user write in the form: Moscow
The form give him all the results with the word Moscow
But when he write Moscow London the result is 0 entries...
BUT in the table we can find Moscow to London
And the search ignores this. cuz he search's full frase...
What should i do th show the user Moscow to London if he search Moscow london...
Here's the code:
Code:
strSQL = "SELECT marsh, polnyi, id " _
& "FROM Question " _
& "WHERE marsh LIKE '%" & Replace(strpoisk, "'", "''") & "%' " _
& "OR polnyi LIKE '%" & Replace(strpoisk, "'", "''") & "%' " _
& "ORDER BY id;"
Sorry for my English... and thank for your help!