Question : 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

Answer : Compare two fields in one table to find differences

A simple query is all you need.
Add this to the sql view of a new query.

Select * from tblPersDetails where Rank <> WornRank
Random Solutions  
 
programming4us programming4us