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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

ACCESS AND TABLES



 
 
Thread Tools Display Modes
  #1  
Old January 13th, 2005, 04:49 AM
GG
external usenet poster
 
Posts: n/a
Default ACCESS AND TABLES

How set query to compare records on two table in Access?
  #2  
Old January 13th, 2005, 06:26 AM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Wed, 12 Jan 2005 20:49:04 -0800, "GG"
wrote:

How set query to compare records on two table in Access?


By creating a Query joining the two tables on some appropriate field
and comparing them.

If you would like a clearer or more detailed answer, please post a
clearer or more detailed question, mentioning (for example) the nature
of the tables and the comparison that you wish to make.

John W. Vinson[MVP]
  #3  
Old January 13th, 2005, 05:27 PM
GG
external usenet poster
 
Posts: n/a
Default

John,
I have 2 tables created in access:
Table one list customers with outstanding items and Table 2 have customers
that do not have outstanding items.

I want to run a query against the tables to see what account numbers appears
on both tables?



"John Vinson" wrote:

On Wed, 12 Jan 2005 20:49:04 -0800, "GG"
wrote:

How set query to compare records on two table in Access?


By creating a Query joining the two tables on some appropriate field
and comparing them.

If you would like a clearer or more detailed answer, please post a
clearer or more detailed question, mentioning (for example) the nature
of the tables and the comparison that you wish to make.

John W. Vinson[MVP]

  #4  
Old January 13th, 2005, 09:51 PM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Thu, 13 Jan 2005 09:27:05 -0800, "GG"
wrote:

John,
I have 2 tables created in access:
Table one list customers with outstanding items and Table 2 have customers
that do not have outstanding items.

I want to run a query against the tables to see what account numbers appears
on both tables?


Create a new Query. Add both tables to the Query. Join them by the
unique account number. Select whichever fields you want to see.

I would strongly suggest that you do some reading on database design.
Having two tables of customers like this IS VERY BAD DESIGN. It's
storing data (the existance or nonexistance of an outstanding item) in
a table name. That information should be determined instead by a
Query; I'm not sure what an "outstanding item" is or how that is
represented in your table, but you should have one and only one
Accounts table, and use a query joining it to a table of "items" to
determine who does and doesn't have any outstanding.

John W. Vinson[MVP]
 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2000 -vs- Access 2003? Mark General Discussion 5 November 30th, 2004 06:36 AM
is Access 2003 any better than XP? Gorb Using Forms 2 November 11th, 2004 09:20 AM
Access XP Compared to Access 2003 Mardene Leahu New Users 1 October 1st, 2004 05:11 AM
What is MDE Charlie General Discussion 4 August 24th, 2004 04:15 PM
Linking Access 97 tables to Access 2002 tables michaelwoodard Database Design 2 August 13th, 2004 02:43 AM


All times are GMT +1. The time now is 11:03 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.