Solved

Access 2007 Combine Information in Two Tables

Posted on 2008-10-16
3
1,133 Views
Last Modified: 2012-06-27
I have a linked table that has "Project Number" and "DVD#" as two of the fields and another linked table that has "Project Number" and "Box Number" as two of the fieds.  One database tracks all of the information stored on DVD and the other database tracks all of the archived paper documents.

I am trying to create a query that will combine the two and reflect changes to either table.    I get an error message that "Project Number" could refer to either table.  I need to have one complete list of project numbers combined from both databases.
0
Comment
Question by:new_techie
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
bandriese earned 500 total points
ID: 22736064
In regards to the error:

Specify the table name allong with Project Number whereever you're using it. For example: [TableA].[Project Number]

In regards to combining the data: It sounds like you need to create a relationship between the two tables. You can drag and drop fields from one table to the other to create the relationship. Your SQL code will look something like this:
SELECT TableA.PrjectNumber, TableA.DVD#, tableb.BobNumber
FROM tableA INNER JOIN tableB ON TableA.ProjectNumber = TableB.ProjectNumber;

Open in new window

0
 
LVL 3

Expert Comment

by:bandriese
ID: 22736079
Another Note to clarify: Creating the relationship will probibly eliminate your error, unless you were using Project Number as a criteria...
0
 

Author Comment

by:new_techie
ID: 22854136
I found that it was even easier to create a union query.  I had to make sure there was an even number of fields and that the field names matched.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question