1
Opa!
I need to add an extra field in a vb6 data report as in the image
Connection to the database is done via ODBC Driver 5.1 with Mysql database. 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 had no Header/Footer Group, it was necessary to add to the new field not to be in the list of items in the report but below each list group.
When adding this group, started giving this error,
report section do not match data source
Some know how to solve this, what’s wrong?