Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Criteria Option in Access 97?

Status
Not open for further replies.

robWhitz

MIS
Oct 23, 2001
23
0
0
SG
Currently, I have a query that prompts the user to enter name (e.g. Enter Student Name), which it will then list down the student information as defined in the query.

How can I customise the query in a way that when I left the prompt blank or 0, it will return me the names of all the students?

Please help.
 

Where columnA = [Enter Student Name]
Or [Enter Student Name] Is Null Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Or
Code:
Like [Enter Student Name] & '*'
The only downside is it will return multiple partially entered names: SMITH will return all students with the last name of SMITH. I usually use this with combo boxes where the user either selects an entry or a blank to select all...
 
Thanks for your help, guys. Got it up and running. :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top