How do I compare two tables?

  • Thread starter Thread starter Nancy
  • Start date Start date
N

Nancy

I'm trying to compare the value of a field in one table to the value in a
field in a seconday table. The comparision field is a alpha field.
 
Hi Nancy,

More specifics would help, such as how do you associate the rows from
the one table to the rows in the second table? And what kind of comparison?
What are the specific table and field names? Try something like this:

select A.Field1, A.Field2, B.Field1, B.Field2, "They are " & IIf(B.Field2 =
A.Field2, "", "not ") & "equal" As TheComparison
from A inner join B on B.Field1 = A.Field1;

If that does not help, post the specifics.

Clifford Bass
 

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

Back
Top