Avatar of Kev
Kev
Flag for Australia asked on

Compare two fields in one table to find differences

Hi,

I have an access DB with a table (tblPersDetails) and two fields I need to compare to each other.

tblPersDetails.Rank
tblPersDetails.WornRank

I need to work out when Rank <> WornRank and display the results in a query. Rank is updated manually, WornRank is updated via a data import/update to function.
What is the best way to achieve this ? Ideally I would like this done in a query or the like, but am open to a better way of achieving this.

I have attached a db file (change from .txt to .mdb) with sample data.

Many thanks
db1.txt
Microsoft AccessVisual Basic ClassicSQL

Avatar of undefined
Last Comment
Kev

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
peter57r

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Moother

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Kev

ASKER
Hey,

Thankyou both for the answer. I accepted both solutions as they both worked, but the second one is exactly what I was looking for; however, it was posted 2 minutes after the first.

Cheers
Your help has saved me hundreds of hours of internet surfing.
fblack61