The DataValue property is populated at runtime with the value of the bound field as retrieved from the data source. You can set the DataValue of calculated fields at runtime. ActiveReports formats the value and places the result in the text property.
Private Sub ghCountry_BeforePrint() ' Set the datavalue of the calculated field. ' The datavalue is formatted based on OutputFormat ' and the result is in Text txtPctTotal.DataValue = txtSales.DataValue / _ txtGrandTotal.DataValue End Sub