Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Calculated Fields on a dataview

edited October 2002 in General
I have a custom dataview with say 10 tables total. The dataview is
inherited from TdaBDEQueryTemplateDataView. I use the routine
AddAllSelectFields to add the fields to the report. I want to add a
calculated field that has its values calculated based on a couple of
other fields in the file. I know how to do this from the calc tab
inside the report writer and adding code to a variable oncalc event.
However, this would be harder for the end user. I would prefer that
in the list of fields for the table, I could add a calculated field to
this somehow and have the code to calculate the value in the
dataview. Is there a way to do this? Thanks!

Comments

This discussion has been closed.