Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculated Fields in Reports
Message
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Calculated Fields in Reports
Divers
Thread ID:
00177084
Message ID:
00177084
Vues:
69
Hi all,

I have a requirement to add a calculated field to a report in VB6 using the report designer. The reports recordset is the result of a parameterized SQL query. I need to take a SUM() value in a group footer, and if the value is greated that 50, do one thing, else do another.

The problem I am having is that I cannot seem to add a textbox to the report that is not tied to a field in the datasource. When I try to put a IIF() wrapper around the field name, the report writer chokes at runtime.

Anyone done anything like this in VB6 yet? I guess I'm looking for a textbox control I can place on the report where I define the exact and complete function/expression that gets executed. This ability has been in FoxPro/VFP for years, I'm surprised it's not as obvious to me in VB. Perhaps I have missed something...

TIA,
Phil
Phil
_____________________________
Phil Miles
http://www.philmiles.com
phil@philmiles.com
Répondre
Fil
Voir

Click here to load this message in the networking platform