Total a column in an Access Query

I am working on a report that will total individual inventory quantities from various locations. The results will be multiplied by the value to produce a total value amount. I have everything the way I need it except I need to total the quantities.

It would be acceptable to either do the total in the attached query or I can create a table and use that data to total the quantities.

I am attaching both the Access SQL and s sample of the results of the query (without the totals).

The results will be multiplied by the value to produce a total value amount

I'm not sure what you mean by that. You have several different calculated fields in the query.

Can you specify what you're looking for?

If you want to summarize the results, you'd be best to build a new query based on the one you're showing here. In that new query, you can then SUM the various fields for which you want to produce totals. For example, if you save your query above as 'qryRoot', then you could do this:

SELECT SUM(FrozenCost) AS FCSum, SUM(FrozenCostExt) AS FCExtSUM FROM qryRoot

For each occurance of IBITM, I need to total the QOH column. Example: For IBITM = 1321658, the total would be TotalQOH = 188.00 + 22.00 + 88.00 = 289.00. I only want to see a single line for each occurance of IBITM.

Open the query in the QBE. Click the big sigma button to make it a totals query. Then change "Group By" to "Sum" for the columns you want to sum.

Keep in mind that you have several columns besides IBITM selected. If they do not all have the same value for an IBITM, then you will end up with excess rows. The query should only include the columns you need to group by and the columns you need to sum.

Featured Post

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database. This article shows how to recreate this functionality in Windows 7 through 10.

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder.
But why not let Windows retr…

Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …