Joining Tables Vlookup equivalent?

G

Guest

I have two tables. Table1: Transactions and Table2: Customers
There are many transactions per customers. There is a unique identifier
"Customer ID" column in both tables. However, there is one column in the
Customers table called "Zipcode".

How do I edit my Table1 to insert a column called "Zipcode" that will link
up from Table 2? I can do this in excel by using index/match or vlookups but
I want to do this straight in Access. Any ideas?
 
S

Stephen Glynn

jjsun said:
I have two tables. Table1: Transactions and Table2: Customers
There are many transactions per customers. There is a unique identifier
"Customer ID" column in both tables. However, there is one column in the
Customers table called "Zipcode".

How do I edit my Table1 to insert a column called "Zipcode" that will link
up from Table 2? I can do this in excel by using index/match or vlookups but
I want to do this straight in Access. Any ideas?

You don't want to store the Zipcode (or anything other than the
CustomerID) in more than one table.

Just write a query joining both tables on the CustomerID field in a
one-to-many relationship between Customers.CustomerID and
Transactions.CustomerID. Your query results will then display all the
fields you want to include from tblCustomers that are relevant to the
particular transaction you're looking at (and vice versa).

BTW, it's not a good idea to include spaces (or punctuation characters)
in field names, since this confuses Access no end.

Steve
 

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

Top