Solved

Access Query Problem

Posted on 2014-04-11
3
170 Views
Last Modified: 2014-04-17
My company has merged with another and neither of our Sales Analysis softwares will talk with each other.  However, I believe I can get the information we need through importing/exporting data from those softwares to Excel and then into Access.

Each file has similar data (Job Number, Sales amount, Customer, etc) but what I'm trying to do is instead of having all the data displayed (both company A and company B) I would like to take the sales from company and and deduct the work that company B did for company A to have a true value of the sale.

Any ideas?
0
Comment
Question by:lordzack
3 Comments
 
LVL 34

Assisted Solution

by:PatHartman
PatHartman earned 350 total points
Comment Utility
You will need to summarize the data from each system using separate queries and then join those totals queries and do the subtraction to find the true value.

The bigger problem will be with the differences in keys and codes between the two systems.  You will probably have to develop some cross reference tables so you can determine that job 456 in company A's file is actually job 83799 in company B's file.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 150 total points
Comment Utility
I suggest the you create queries of the sales for each subsidiary. In the commissioning subsidiary, ignore all sales to the new partner.

Create a union query to show all in one (not possible in the design view). Then if you need  totals, create a GroupBy/Total query from the union query.

It can probably all be done in one piece of SQL, but doing it this way will help you and subsequent maintainers to understand the process.
0
 

Author Closing Comment

by:lordzack
Comment Utility
What I ended up doing was a combination of your suggestions - Thank you for putting me on the right path.  First I started with 2 tables (one for each Division.  Then I made a query for each bit of information (Sales, Outside Purchases, Labor, etc) from each table.  Once that was done I made a master query with the information from all the queries which gave me the data on a single row - giving me the power to do calculations on a record where needed.

Thank you for your help!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Macbook MS Office installer missing 11 49
Combobox issue 4 25
Query output to Excel producing error 7 27
Dateadd 3 19
In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
This article will show you how to use shortcut menus in the Access run-time environment.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now