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

QUERY RESULTS NOT RIGHT- PLEASE HELP

Status
Not open for further replies.

HerickP

IS-IT--Management
May 10, 2000
68
US
Hi,<br><br>i have a query to run on a table which has these two fields in question: Date shipped and Status; I have the query to run on the Date shipped field to display records in a specific date range, and it does it ok, except that when I specify a criteria for the field &quot;status&quot; ( on my Status field, I have just 2 different records: Delivered or InTransit; if I Also specify the Criteria &quot;Delivered&quot; for the field &quot;status&quot;, the query results display all records that have &quot;delivered&quot;, ignoring the date range specified in the DateShipped field. What am I doing wrong????
 
Look at the query in design view.&nbsp;&nbsp;For each column in the query there should be a line for criteria.&nbsp;&nbsp;The line below that has an &quot;or&quot; label.&nbsp;&nbsp;Make sure that both criteria for &quot;Date shipped&quot; and &quot;Status&quot; are entered on the criteria line.&nbsp;&nbsp;If not the query will return the records between the date range OR any with the status specified.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top