Criteria in a query

K

Krish

In a select query I have added a criteria to a field as ["Enter
Department:"]. If no department is entered in the box that is prompted, I
get no results. How do I make the query to display all departments, if no
department is entered in the prompt box?

Thanks for the help
 
N

Nikos Yannacopoulos

Krish,

Change your criterion in the query design to:

Like ["Enter Department:"] & "*"

HTH,
Nikos
 
F

fredg

In a select query I have added a criteria to a field as ["Enter
Department:"]. If no department is entered in the box that is prompted, I
get no results. How do I make the query to display all departments, if no
department is entered in the prompt box?

Thanks for the help

Where YourTable.[Department] = [Enter Department] or [Enter
Department] Is Null
 

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