a query which compares two columns in a table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to develop a query which takes two columns from a table, compares
the values, and only displays the values in those two fields when they are
not equal.
 
pihrana52583 said:
I'm trying to develop a query which takes two columns from a table,
compares the values, and only displays the values in those two fields
when they are not equal.

What do you want to display when they are equal and what do you want to
display when they are not?
 
I'm trying to develop a query which takes two columns from a table, compares
the values, and only displays the values in those two fields when they are
not equal.

If the fields are named FieldA and FieldB, create a Query selecting
whatever you want to see; on the Criteria line under FieldB put

<> [FieldA]

The square brackets are essential, since otherwise it will show you
all records where FieldB is not equal to the literal text string
"FieldA".

John W. Vinson[MVP]
 

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