I'm not sure that a query to do this is a task for a complete newcomer to working with MS Access. You won't do it with a simple query. It could be done by calling a function in a query, whose code loops through the first table's
columns (fields) per primary key value, and within that loop examines the second table's corresponding column, incrementally building a string expression as the function's return value where the values do not match. This is not too difficult if you understand
how to work with recordsets in code, but is not trivial and might be outside the comfort zone of someone new to the subject.
Another way of presenting the mismatches would be to do so in a report. The report would be based on a query which joins the two tables on the primary key columns, returning all columns from each table. The values could then be presented in the report's detail
section as two rows, with the corresponding columns from each table vertically aligned with each other. Conditional formatting could then be used to change the ForeColor and/or BackColor of each control if its value differed from the corresponding one above/below
it. The report would show all values for all columns in both tables, but where the values differ these would be readily apparent by virtue of their different colour. Such a query and report would be very easy to create, and no code would be required. It
would merely require you to build the simple non-equality expressions for the conditional formatting of each control.
Thank you Ken, even though I am familiar with algorithms and coding. My experience is with Java and XHTML, whereas Access uses SQL. That's just to much work for a side project at work. I just wanted to confirm with some others that what I was hoping to accomplish,
could not be simply achieved. I apologies for the lack of information I provided in my example; it sounded better in my head.
At work, we have 2 databases that don't communicate with each other, and are maintained by 2 different departments. So there are some errors when inputting the data. The necessary data that requires correction can be exported in to excel, but with over 1800
rows and 9 columns it can become time consuming pinpointing the errors. It was expected that locating the unmatched values could be done rather quick using Microsoft access. Like I previously stated, I was able to create a query to return the primary keys
that have unmatched values, but the unmatched values could occur in any of the nine fields. So the query will return roughly 400 PKs with all 9 fields. 400 is much better to work with than 1800, but it would be nice if I could pinpoint the exact field for
the PK that had the error.