Autor Beitrag
hube
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38

WIN XP
D7 Prof
BeitragVerfasst: Sa 12.02.05 14:48 
Hallo

Ich stehe wieder mal an:

Ich habe beim einem Rave-Report ein Ergebins (Summe in einer CalcText-Komponente).
Diese Ergebins sollte ich nun durch 2 teilen.

Das Ergebnis habe ich wie folgt erhalten:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
Query2.Close;
Query2.SQL.Clear;
Query2.SQL.Add ('Select SUM(preis)');
Query2.SQL.Add ('FROM Lager');
Query2.SQL.Add ('WHERE Kundennummer =' + DBText1.Caption);
Query2.Open;

Mit dem Rave bilde ich nun die Summe vom "Preis" und habe dann das Ergebins.

Nur sollte ich diese Ergebnis durch zwei teilen, hat da jemand ein Ahnung wie das gehen könnte?

Besten Dank für Euere Hilfe :D

hube

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
tpau17
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

W2K, XP
D7 E, D2006Arch
BeitragVerfasst: Fr 18.02.05 00:25 
hube,

schau' dir einmal die RaveCalc-Komponenten im Register Report (die Kompo's mit dem grünen Hintergrund :wink: ) an

:-) thomas, TeamNevrona

_________________
(TeamNevrona cannot respond to questions received via email)