Filter by Criteria Selection

HD20

Registered User.
Local time
Today, 15:44
Joined
Jun 25, 2002
Messages
27
I have a query with a field of names and I would like to have a filter option, but still maintain the capability to show all records. I put [Enter Name] in the criteria section of the query so it prompts the user to enter a name and if they enter Joe Smith, his records appear.

Is there a way to enter something that would give all records? I tried leaving the prompt blank and I tried putting in "*", neither worked.

Thanks in advance for your help.
 
Try this one with just hitting enter for getting all records
Code:
SELECT
  Lastname
FROM tblPeople
WHERE Lastname Like [Enter Name] & "*"

HTH nouba
 

Users who are viewing this thread

Back
Top Bottom