Results 1 to 3 of 3

Thread: Datareports in VB6

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    1

    Unhappy Datareports in VB6

    Hi

    I'm having a problem with the datareports in vb6. My report consist of a couple of groups with function controls to calc totals for each group. How do I add (sum) the totals I get from my functions and display the result in a label?

    Thanks

  2. #2
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Datareports in VB6

    You can't display using a label. If in addition to Sum(A), Sum(B), and Sum(C), you want to display using data report textbox Sum(A) + Sum(B) + Sum(C), THEN you will have to include A+B+C column in the data source/recordset/command object. Once A+B+C column is available, you can place a function control to SUM(A+B+C column).

    Data report works with the data source, it doesnt access values from what was already outputted/rendered/generated or doesn't access values from it's controls during report generation.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Datareports in VB6

    Moved To Reporting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width