Solved

Sum field from multiple records

Posted on 1998-10-30
1
120 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

707 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