how can I exclude records if they equal?

  • Thread starter Thread starter Dani
  • Start date Start date
D

Dani

I would like to exclude all the records in my query if the [orderqty]
and the [receivedqty] equal. Both fields are in the same table. Is
this possible? Danielle
 
Dani said:
I would like to exclude all the records in my query if the [orderqty]
and the [receivedqty] equal. Both fields are in the same table. Is
this possible? Danielle

Sure. You would simply add a WHERE clause to the query:

WHERE orderqty <> receivedqty
 
Assuming you're creating your query through the GUI, put

<> [receivedqty]

on the Criteria line under [orderqty]
 
Danielle:

Yes, this is possible. For example:

SELECT OrderQty, ReceivedQty
FROM MyTable
WHERE [OrderQty]<>[ReceivedQty]

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


I would like to exclude all the records in my query if the [orderqty]
and the [receivedqty] equal. Both fields are in the same table. Is
this possible? Danielle
 

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

Back
Top