comparing two tables for matches and blanks

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the easiest way to compare two tables to find matches and blanks.
Can this be done without code? Any help will be greatly appreciated.
 
X"TotallyConfused said:
What is the easiest way to compare two tables to find matches and blanks.
Can this be done without code? Any help will be greatly appreciated.

Depends on the tables. What constitutes a "match"? Do you have some field in
the table that uniquely identifies a record which you could use in a query to
join the two tables? What constitutes a "blank" - in one field? completely
empty records? or what?
 
Yes I do have two fields in tables that could be joined and blanks would be
blank. For instance first name and last name would be found in both tables
but these same names would be in different cities. Therefore, I need to
identify the records that match names with cities and then find the one that
do not match in either table. Hope this makes sense. Can someone please
help. Thank you.
 
Yes I do have two fields in tables that could be joined and blanks would be
blank. For instance first name and last name would be found in both tables
but these same names would be in different cities. Therefore, I need to
identify the records that match names with cities and then find the one that
do not match in either table. Hope this makes sense. Can someone please
help. Thank you.

I'm sorry, but it doesn't (or maybe I need another cup of coffee).
What are these two tables? What are the relevant fieldnames in the
tables? What (if anything) constitutes the Primary Key? For that
matter, what makes you think that a given city might not have two
people both named (say) Fred Brown? Little Parma, Idaho has three...

You can create a Query by adding your two tables to the query grid.
You can drag any field name from one table to the corresponding
fieldname in the other to find records which match on that field; if
you drag ten fields you'll find records which match on those ten
fields.

And if you put a criterion of

IS NULL

on the Criteria line under a field it will find records where that
field is NULL ("blank").

John W. Vinson[MVP]
 

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