Calculation Problem
From: NeWuSeR (koningsander_at_tvvbf.nl)
Date: 02/18/04
- Next message: Maarten Wiltink: "Re: midistreamopen"
- Previous message: Alfred ten Hoeve: "Re: What is the week number?"
- Next in thread: Toon Krijthe \(NoSpam\): "Re: Calculation Problem"
- Reply: Toon Krijthe \(NoSpam\): "Re: Calculation Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 18 Feb 2004 01:55:46 +0100
Hi all,
I'm facing the next problem.
When running a query
ADOQuery5.Active := False;
ADOQuery5.SQL.Clear;
ADOQuery5.SQL.Add('SELECT SUM(Artikelregels.M2) AS SomVanM2');
ADOQuery5.SQL.Add('FROM Artikelregels');
ADOQuery5.SQL.Add('GROUP BY Artikelregels.Referentienummer');
ADOQuery5.SQL.Add('HAVING (((Artikelregels.Referentienummer) =' +
Label25.Caption + '))');
ADOQuery5.Active := True;
I'm running this query after posting a value M2 in the Table Artikelregels.
If there's one value posted the sum is correct.
When posting the second value M2 and running the query again the sum stays
the same
but after posting the third value M2, the sum is correct!
I'm running this with an MSAccess Database.
Has anyone ever faced this strange problem?
- Next message: Maarten Wiltink: "Re: midistreamopen"
- Previous message: Alfred ten Hoeve: "Re: What is the week number?"
- Next in thread: Toon Krijthe \(NoSpam\): "Re: Calculation Problem"
- Reply: Toon Krijthe \(NoSpam\): "Re: Calculation Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|