Solved

Access 2007 Combine Information in Two Tables

Posted on 2008-10-16
3
1,135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

738 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