Solved

Microsoft Access Sum Query

Posted on 2009-05-10
1
953 Views
Last Modified: 2012-08-13
I have a database that I have made with 4 different tables. In one table I have a blank cell of which I want to get the sum of 3 columns in the other tables.

I have no idea how the sql in access works so I'm basically stuck at the moment.

The column that is blank and needs the sum is:

Orders.Product_Build_Price


The 3 that I need to add up are as follows:

Product_PCB.PCB_Kit_Price
Product_Comp.Component_Kit_Price
Product_Pack.Packaging_Kit_Price


If you could help me do this then it would be much appreciated.
0
Comment
Question by:danthorpe2002
1 Comment
 
LVL 10

Accepted Solution

by:
Korbus earned 250 total points
ID: 24350343

You will want to use at least two queries:
one lookup query to sum up the values in the source tables
one update query to change the value in the destination table.
(You can use a query as the source table, for another query.)

You may even want to break the sum query into a few seperate queries.
One query for each table to sum up all thier values
Another query to add the results of each table sum together.

I suggest you play around with the graphical query designer in access a little bit, it's fairly intuitive.  I'd suggest you start with the three querys to sum up each table (PCB,Comp and Pack).
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

910 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

24 Experts available now in Live!

Get 1:1 Help Now