Comparing data in two fields

J

jitt

Hi,

I was wondering if it's possible to look at data in two
fields and compare if they are the same or not. I want to
create an exception query to display only those records
where the data in the two fields are different. Is this
possible to do with Access 2000? For example:

Field1 Field2
100 100
20 20
5 10

So display only the third row.

Thanks!

Jitt
 
M

Michel Walsh

Hi,



SELECT * FROM somewhere WHERE field1 <> field2



Hoping it may help,
Vanderghast, Access MVP
 
D

Dale Fye

Why would you want 2 fields to contain the same data in the same
record?

SELECT T.*
FROM yourTable
WHERE [Field1] <> [Field2]

--
HTH

Dale Fye


Hi,

I was wondering if it's possible to look at data in two
fields and compare if they are the same or not. I want to
create an exception query to display only those records
where the data in the two fields are different. Is this
possible to do with Access 2000? For example:

Field1 Field2
100 100
20 20
5 10

So display only the third row.

Thanks!

Jitt
 

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

Top