Parameter value

A

Angeliki

I define a parameter value in a query. However if i want to see only a
specific data
it's ok but can you tell me what parameter value should i enter in order to
show me all the data
of the query?? i tried * but it does not work.

thanks in advance
Angeliki
 
J

John Spencer (MVP)

Can you post the SQL of the query that is not working. It is really hard to say
what the problem is.

A big guess is that you are using the equals operator instead of the Like
operator in your criteria.
 
A

Angeliki

This is the SQL code for my criteria.I want to be able to choose either one
contract reference of all in once.
Can you please tell me what is wrong with the code?
WHERE (((IIf([Contract_Ref]="NTU","NTU",IIf([Contract_Ref]="NTU (S)","NTU
(S)",IIf([Contract_Ref]="Declined","D","WRITTEN"))))=[enter profile]));
Thanks
Angeliki
 
J

John Spencer (MVP)

Try

WHERE IIf([Contract_Ref]="NTU","NTU",
IIf([Contract_Ref]="NTU (S)","NTU (S)",
IIf([Contract_Ref]="Declined","D",
"WRITTEN"))) LIKE [enter profile];
This is the SQL code for my criteria.I want to be able to choose either one
contract reference of all in once.
Can you please tell me what is wrong with the code?
WHERE (((IIf([Contract_Ref]="NTU","NTU",IIf([Contract_Ref]="NTU (S)","NTU
(S)",IIf([Contract_Ref]="Declined","D","WRITTEN"))))=[enter profile]));
Thanks
Angeliki

John Spencer (MVP) said:
Can you post the SQL of the query that is not working. It is really hard to say
what the problem is.

A big guess is that you are using the equals operator instead of the Like
operator in your criteria.
 

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