PC Review


Reply
Thread Tools Rate Thread

Creating a Query based of two diffent data tables

 
 
CSnTexas
Guest
Posts: n/a
 
      21st Mar 2010
Access 2000- I am trying to create a Query based off two tables.
I am working with two tables and the only matching field out of both tables
is an account number. How do I write an expression or criteria in the design
view that will allow the account number to match out of each table to gather
the rest of the information from both table based off the account numbers?

 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      22nd Mar 2010
On Sun, 21 Mar 2010 15:30:01 -0700, CSnTexas
<(E-Mail Removed)> wrote:

>Access 2000- I am trying to create a Query based off two tables.
>I am working with two tables and the only matching field out of both tables
>is an account number. How do I write an expression or criteria in the design
>view that will allow the account number to match out of each table to gather
>the rest of the information from both table based off the account numbers?


Create a Query in the query design window.

Add both tables to the query window.

If Access doesn't do so automatically, drag the account number field from one
table (the "parent") to the corresponding field in the child table.

Select whatever fields you want to see into the query grid.

You'll be doing this a lot, and should become comfortable with both the query
grid view and SQL view - you can click View... SQL to see the latter (it's the
"real" query, the grid is just a tool). If you need help with a query from the
newsgroups, copy and paste the SQL to a message here.

Here are some resources that might help you up the steep and rocky learning
curve...

Jeff Conrad's resources page:
http://www.accessmvp.com/JConrad/acc...resources.html

The Access Web resources page:
http://www.mvps.org/access/resources/index.html

Roger Carlson's tutorials, samples and tips:
http://www.rogersaccesslibrary.com/

A free tutorial written by Crystal:
http://allenbrowne.com/casu-22.html

A video how-to series by Crystal:
http://www.YouTube.com/user/LearnAccessByCrystal

MVP Allen Browne's tutorials:
http://allenbrowne.com/links.html#Tutorials

--

John W. Vinson [MVP]
 
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
Creating delete query based on matching fields between two tables DBGuy11 Microsoft Access Getting Started 1 24th Nov 2009 05:54 PM
Creating tables based on Excel Column data. Achase Microsoft Access External Data 1 30th Sep 2008 04:18 PM
I have cells with diffent color fonts and need to total based on . =?Utf-8?B?S3lhcmFC?= Microsoft Excel Misc 1 20th Apr 2005 05:28 PM
Creating a form based on four tables aweise Microsoft Access Form Coding 0 21st May 2004 08:54 PM
Re: Creating Sums in Report based Based on Query Duane Hookom Microsoft Access Reports 0 15th Jul 2003 06:39 PM


Features
 

Advertising
 

Newsgroups
 


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