Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Comparing three (3) Tables in a MS Access database with CR11 Report

Comparing three (3) Tables in a MS Access database with CR11 Report

I have one MDB file and three only Tables exist within the file. In each Table there is one identical main field.... {Part-Number}.
The Tables are imported from three different sources and they SHOULD contain identical data... however they are not identical... Table A is the Master and B & C should be identical with respect to {Part-Number}.

I wish to compare the Tables based on [Part-Number} and determine where un-match data fields exist in each of the three Tables... comparing only the data in {Part-Number} :

{Part-Number} {Part-Number} {Part-Number}

qwe234 qwe234 qwe234 < FULLY MATCHED!

dfe234 dfe234 < PARTIAL MATCH

xyz123 xzy123 < PARTIAL MATCH

erf456 < No MATCH

Can this be done in CR11 with one Report.... or are multiple individual reports needed ?

RE: Comparing three (3) Tables in a MS Access database with CR11 Report

Link the tables by part number using a left outer join.

then you need a few formulas:
if isnull({tableB.partnumber}) then 0 else 1

if isnull({tableC.partnumber}) then 0 else 1

if {@foundB} + {@foundC} = 0 then "No Match"
if {@foundB} + {@foundC} = 1 then "Partial Match"
if {@foundB} + {@foundC} = 2 then "Full Match"

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close