If Field "B" = FIELD "A" Then.....

  • Thread starter Thread starter NeonSky via AccessMonster.com
  • Start date Start date
N

NeonSky via AccessMonster.com

Hello All,

Quick question here. In the query design window I am creating a make table
query where if the value of field "A" is equal to the value of field "B" then
do not include record in query result.

Happy to provide additional info!

Thanks so much!!
 
Neon,
In the A column use this criteria...
<>
All A records that = B will be dropped.
 
Let me know if this helps:

I create a Field in the query called MySort

MySort: IIF(A=B, "YES", "NO")

Then on the Criteria level of the query, I type in "YES".

This way only the records that have a YES will go into the Make Table.
 
In the Criteria row of FieldA:

<> FieldB

That will cause the query to include only those rows where the two fields
are not equal.
 
Thanks everybody, truly do appreciate the input!!
 
Awesome! really helped me because when dealing with multiple fields I
inserted OR statements in which worked perfectly!
Let me know if this helps:

I create a Field in the query called MySort

MySort: IIF(A=B, "YES", "NO")

Then on the Criteria level of the query, I type in "YES".

This way only the records that have a YES will go into the Make Table.
Hello All,
[quoted text clipped - 5 lines]
Thanks so much!!
 

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