A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Pulling two tables together & keeping all records, not just matchi



 
 
Thread Tools Display Modes
  #1  
Old July 15th, 2009, 04:33 PM posted to microsoft.public.access.gettingstarted
trypsin25
external usenet poster
 
Posts: 1
Default Pulling two tables together & keeping all records, not just matchi

I have two tables that I would like to pull together. One is called
organizations and one is CEO Contact. If I create a query with the fields I
want, it only creates records where all of the information exists. What also
need to have is the organization record even if the CEO name is not in the
CEO table. I would greatlly appreciate a point in the right direction.
  #2  
Old July 15th, 2009, 05:12 PM posted to microsoft.public.access.gettingstarted
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Pulling two tables together & keeping all records, not just matchi

In query design view, double click on the line between the two tables until a
dialog box shows up. The default option 1 is an inner join where both tables
need a matching record.

Option 2 is a left join and option 3 is a right join. They will return
records even when one table doesn't have a matching. Try option 2 and if that
doesn't work option 3.

There is no option 4 which is a full outer join. If both tables are missing
records that match those in others, Access can handle it with a simple join.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"trypsin25" wrote:

I have two tables that I would like to pull together. One is called
organizations and one is CEO Contact. If I create a query with the fields I
want, it only creates records where all of the information exists. What also
need to have is the organization record even if the CEO name is not in the
CEO table. I would greatlly appreciate a point in the right direction.

  #3  
Old July 15th, 2009, 06:49 PM posted to microsoft.public.access.gettingstarted
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Pulling two tables together & keeping all records, not just ma

Typo. It should read:

Access can't handle it with a simple join
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Jerry Whittle" wrote:

In query design view, double click on the line between the two tables until a
dialog box shows up. The default option 1 is an inner join where both tables
need a matching record.

Option 2 is a left join and option 3 is a right join. They will return
records even when one table doesn't have a matching. Try option 2 and if that
doesn't work option 3.

There is no option 4 which is a full outer join. If both tables are missing
records that match those in others, Access can handle it with a simple join.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"trypsin25" wrote:

I have two tables that I would like to pull together. One is called
organizations and one is CEO Contact. If I create a query with the fields I
want, it only creates records where all of the information exists. What also
need to have is the organization record even if the CEO name is not in the
CEO table. I would greatlly appreciate a point in the right direction.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.