Solved

Summing DBGrid's Detail table's curreny value to show subtotals

Posted on 1998-12-03
3
245 Views
Last Modified: 2010-04-04
I want to create a invoice form
with Master Detail table. I cannot
use the TQuery component because I
am not using borland's BDE. How can
I sum the Detail table's value and
show it to the user?
0
Comment
Question by:davichoi
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1349166
Hi davichoi,

I wrote code for this myself once, but lately a free component came on the net :

http://www.torry.ru/vcl/database/dbsumlst.zip
and you can use it (if you want) with this dbgrid

http://www.torry.ru/vcl/database/dbgrideh.zip

Regards, Zif.

ps. I can provide the code too, if you want
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1349167
otherway is to iterate your table... yes slow and not good coding, but I don't see another way.
0
 

Author Comment

by:davichoi
ID: 1349168
Thanks!!! You helped me alot!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

12 Experts available now in Live!

Get 1:1 Help Now