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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Access Problem Adding Multiple Criteria in a Query

Status
Not open for further replies.

russm101

IS-IT--Management
May 6, 2005
26
US
I am attempting to add the "Between Date" and ="value" expression in a query. Only one of the query are working at a time. Is there a way to add them both. I even tried on as an "or". Still Not Working!

Any ideas!


Thanks....Russ
 
Russ
I'm not exactly clear what "value" is.

Is "value" a date? So that you are trying to pull records which are "Between Date And value"? In this case, Date would be today's date, and "value" would be some other date.

In any case, your expression "Between Date" and ="value" will never work.

Tom

 
Thanks for the quick response!

What I mean by =value is that value is the match of my criteria selection.

example:

If:
Criteria expression says ="cool" for one column

Can I enter "Between Date() and Date()-7" in another criteria of a deifferent column in the same query.


once again, thanks....
 
Russ
Yes, that should work. What that would do first is select all records which have "cool" in the one column, and then of those records select the ones which are "Between Date() And Date()-7)"

What happens when you run the query?

If things still don't work properly, you could post the SQL for the query.

Tom
 
Thanks..

When I do this, I don't see any records even though there is data that meets tboth criterias. If I do either of them by themselves, the records show up.

Russ
 
Russ
Two questions...

1. Is this query based on one table only? Or on two tables joined in a one-to-many relationship?

2. Can you copy the SQL and paste it here?

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top