You missed what I said. The code required to write a search engine is more complex than that. You need to incorporate other conditions within your SQL statement in order for it to work.<br><br>That is why I suggest you have people select the first letter of the search term from a selection box. Therefore, when someone selects 'D' the result is all records beginning with the letter 'D' regarless of what comes after it.<br><br>If you insist on using your search, you would have to build something that treats each term seperately instead of as a phrase. The best way to do that is to create two input boxes (one for each search term) and create a conditional SQL statement depending on whether the second one contains text or not. If it does contain text, the SQL statement will read:<br><br>WHERE name LIKE'%#form.nametypedin1#%' AND name LIKE '%#form.nametypedin2#%'<br><br>If it doesn't, the SQL statement will read:<br><br>WHERE name LIKE'%#form.nametypedin1#%'