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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
ACCESS AND TABLES
How set query to compare records on two table in Access?
|
#2
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |