Problem with groups

I have a report with a GroupHeader band, a MasterData band and a GroupFooter band. The estructure of the report is:
In group header: [Company Code]
In master data: [Sales]
In group footer: [Total Sales for each company]

In the group footer I have a TfrMemoView with the expression
Total Company [DialogForm.QueryReport1."CODE"]
where code is a CHAR(9) field of a firebird db table (accessed through dbExpress) with the format '9999-9999'.

The problem is the result tha appears on execution: each group footer shows the company code of the next company in QueryReport1. The strange is that the same report against a Paradox table (through BDE) shows the correct result (company code). Is there an explanation for this difference?

I have tried also to avoid the error working with a variable that in group header obp saves the company code, but the memoview shows it with a bad format, though DisplayFormat is set to Text. For example, the code 0030-0000 appears as 30 and 0198-1154 appears as 198.

Can anyone give an idea about this?

Regards

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.