PC Review


Reply
Thread Tools Rate Thread

query syntax / layout

 
 
susan
Guest
Posts: n/a
 
      20th May 2011
Hi,

How to write a query that display fields which excist in tabke1 as well as
in table2?

Table1 with fields:
- age
- name

Table2 with fields:
- name
- street
- city


Query must show all records of Table1 where "name" is the same as "name" in
Table2.

Thanks,

Susan


 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      20th May 2011
--Add both tables to the query
--Drag from Name in Table 1 to Name in Table 2 (this creates a join between
the two tables - which is represented by a line)
--Select the fields you want to see from the two tables by double clicking on
the field name.

If for some reason, you want to see all the records in one table EVEN IF there
is no matching record in the other table, then double-click on the join line
and select option 2 or 3 in the dialog box - show ALL from x and only matching
from Y.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

On 5/20/2011 9:14 AM, susan wrote:
> Hi,
>
> How to write a query that display fields which excist in tabke1 as well as
> in table2?
>
> Table1 with fields:
> - age
> - name
>
> Table2 with fields:
> - name
> - street
> - city
>
>
> Query must show all records of Table1 where "name" is the same as "name" in
> Table2.
>
> Thanks,
>
> Susan
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing Layout: Css-Layout or Table-Layout hpourfard@gmail.com Microsoft ASP .NET 1 19th Jun 2006 11:06 AM
Change Word default (opening attachments from Outlook) from reading layout to print layout? KR Microsoft Word New Users 5 21st Mar 2005 06:09 PM
Can I add own lay-outs to Content Layout in Slide Layout pane? =?Utf-8?B?Z2l6ZWxh?= Microsoft Powerpoint 1 16th Dec 2004 01:59 PM
morph horizontal layout to verticl layout? JR Microsoft Access 0 21st Jul 2004 04:19 PM
2003 Layout => 2002 Layout Jon Cook Microsoft Outlook 2 25th Jan 2004 09:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:00 AM.