Retrieve Specific Contacts

ccflyer

Registered User.
Local time
Yesterday, 23:29
Joined
Aug 12, 2005
Messages
90
Hey Everybody,

I have 2 tables, one called [Addresses] and the other called [2006_Contacts]. The table [Addresses] has a number of various fields relating to contact data of people. The [2006_Contact] table has 2 fields [Last Name] and [First Name]. I want to run a query that pulls the contact data from the main [Addresses] table, but only if the contact name ([First Name] and [Last Name]) are present in the table [2006_Contacts].

Does anyone have any suggestions?

Thanks,
Chris C.
 
If you join the two tables in a query using an inner join (type 1 in Access terms), you will only return data if there is a record in both tables. I think that will give you what you want.
 
Hey neileg,

That sounds like it would probably work. I know how to the two tables together, but how do you return a record only if it is present in both?
 
That's what I explained! Create a query, bring in both tables, join them with an inner join. That's the default join in Access, so you really don't have to do any more.
 
Ok, I see what you are saying now.

Thanks,
Chris
 

Users who are viewing this thread

Back
Top Bottom