1. have only one textbox for input, named txtInput on a form I named "Finder" for illustrative purposes.
2. create a button to run the following query against your table (assumed name is tblSearches_ after something entered in txtInput
SELECT tblSearches.lastname, tblSearches.firstname
FROM tblSearches
GROUP BY tblSearches.lastname, tblSearches.firstname
HAVING (((tblSearches.lastname) Like ("*" & [Forms]![Finder]




by: MikeToolePosted on 2007-10-03 at 14:53:44ID: 20010353
You need something like:
Where (Lastname = txtLastname and txtFirstName = "")
OR (Firstname = txtFirstname and txtLastName = "")
OR (Lastname = txtLastname and Firstname = txtFirstName )