Solved

Sum field from multiple records

Posted on 1998-10-30
1
123 Views
Last Modified: 2010-04-30
Is there a way to add one field from a database.
Ex. The field Ending_Balance. Adding this field from every record for a grand total into another field. Using SQL I can not find a way. Is there another way.
0
Comment
Question by:robhas
1 Comment
 
LVL 1

Accepted Solution

by:
lawnranger earned 20 total points
ID: 1442620
USE an SQL Aggregate function (SUM in this case) as in;

SELECT SUM(Ending_Balance) AS Total_Balance FROM YourTable WHERE Month=6
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

839 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