Customer Search Query and from

S

Simon

I have a query that is base a form on than lets me type in some one
surname ( Or firstname or Email address) and it will do the do a
search and dispaly any one with a surname similar

the query is

SELECT qryCustomers.CustomerNumber, qryCustomers.FirstName,
qryCustomers.LastName, qryCustomers.EmailAddress
FROM qryCustomers
WHERE (((qryCustomers.FirstName) Like "*" & [forms]!
[frmCustomersSearch]![FirstNameSearch] & "*") AND
((qryCustomers.LastName) Like "*" & [forms]![frmCustomersSearch]!
[SurnameSearch] & "*") AND ((qryCustomers.EmailAddress) Like "*" &
[forms]![frmCustomersSearch]![EmailSearch] & "*"));



The problem i have if is do a search for SMITH and smith does not have
a email addrees or first name it does not bring up any information

how do i get to serach for smith even if they do not have an emaila
address

thanks

Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top