Hello,
I have the following problem. I have an SQL query (Zeos+MySQL) which gives me a single table, let's say costumers and their acquisitions:
CustCode, CustName, CustItem, CustItemPrice
Of course customers may have several items, so this is a kind of master-detail, but I'd like to handle it as a single table, being quite small.
The report has four main bands:
GroupHeader1: CustCode, CustName
MasterData1: Item.name CustItemPrice
GroupFooter1: SUM([CustItemPrice],MasterData1)
ReportSummary1: COUNT([CustCode],GroupHeader1), COUNT([CustItem],MasterData1),
SUM([CustItemPrice],MasterData1)
The problem is that the COUNT() and SUM() from MasterData1 are working fine, while the value of COUNT() from GroupHeader1 is always zero.
The help says that the second parameter of COUNT() is a band. GroupHeader and GroupFooter are bands, so I think it should work. I tried to put something on the GroupFooter1 band and count it, but it doesn't work either. Nor does SUM, BTW.
I am using the latest release of Lazarus from SourceForge (I've downloaded and installed today) under Win XP SP3.
Any help highly appreciated. I wanted to ask first and then report this as a possible error.
Thanks in advance:
Gabor