Oops!
I need to add one more field in a vb6 report report as in the image
The connection to the bank is done via ODBC Driver 5.1 with MySQL database. I use this SQL for report generation:
SELECT *, venda.TotalS AS total_venda_agrupa, venda.totalc AS valor_total_venda, venda_forma_pagamento.descricao AS nome_forma_pagamento, vendaesc.QUANTIDADEprod as qtd, (vendaesc.QUANTIDADEprod * vendaesc.ValUniProd) As total_soma FROM vendaesc,venda INNER JOIN venda_forma_pagamento ON venda_forma_pagamento.cod = venda.forma_pagamento where vendaesc.data='2016-03-30' AND venda.cod = vendaesc.venda order by venda.cod
What it does is just relate the tables and bring the data, simple thing.
The new field is a RptFunction of the data report components. Before trying to add this field, the report did not have any Header / Footer Group, it was necessary to add to the new field not to be in the list of report items and to be below each list group.
Adding this group started to give this error,
report section do not match data source
Someone knows how to solve this, what's wrong?