Creating a new table by combing two others within a database

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

Guest

I want to create a new table by pulling data from one table IF it matches
data in another table.

Example: I have a mailing list in one table and a separate table with just
zip codes. I want to create a new table that extracts data from the mailing
list IF the zip code in the mailing list matches the zip codes in the zipcode
table.

Can someone please tell me how to do this?
 
Create a query that include both tables linked by the zip code field, inner
join.
Check the data that the select query return, if it match your needs, change
the query from select query to create table query (in the menu bar, select
query > create new table), run the query and you'll have a new table that
return the appropriate data.
 
I want to create a new table by pulling data from one table IF it matches
data in another table.

Example: I have a mailing list in one table and a separate table with just
zip codes. I want to create a new table that extracts data from the mailing
list IF the zip code in the mailing list matches the zip codes in the zipcode
table.

Can someone please tell me how to do this?

As Ofer says, just create a Query joining the two tables by Zip code.

However, there is NO need nor benefit to creating a new Table. The
information in this table would be redundant - it's already IN your
mailing list table; there's no point in storing it twice (making
corrections to addresses much more difficult, for one thing).

Instead, base a Form, Report, export, or whatever you wish, directly
on the join query.

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