Solved

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

Posted on 1998-12-03
3
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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