Results 1 to 9 of 9

Thread: Datareport Question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    US
    Posts
    115

    Talking Datareport Question

    Is it possible to add, subtract, divide a function on a datareport, if so can you lead me in the right direction?

    Pinkpanther2070

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    There are 8 functions provided by the data report function control (SUM, Std. Deviation, Std. Error, etc.). You can only add this control to Group Footers and Report Footers.

    Hope this helps,

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    US
    Posts
    115
    if you already have you functions established ex sum(field1) = function1, sum(field2)=function2, is there a way to say function1/function2 = value, in the footer of the report

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Do you want to Sum the Sums? Or do you want just one sum to show up at the bottom of the DR.

    If you want to sum the sums, you can just use the Function control.

    Hope this helps,

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    US
    Posts
    115

    Talking

    Yes I want to manipulate the sums, so all i need to do is use another control!

    So how do I tell VB that I want to function1/function2=function3

  6. #6
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    I dont think you can do that in the DR, but you could probably do it in your SQL statement.

    SELCT A,B, A/B as ADIVB FROM TABLE1

    Hope this helps,

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    US
    Posts
    115
    Thanks for all your help, I dont think that the data report is capable of that either, I will try to do something else with my sql statement

  8. #8
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Yeah the DR has VERY VERY limited functionality, you have to do a lot of work with SQL. I also use temporary databases to generate my reports, I will just put everything I need in one table and just do it all though code. This method works very well for complicated reports.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    US
    Posts
    115
    Yes this is true, I have found it out the hard way (Program is just about done, I'm debugging and adding things were needed)

    I beleive I will try out Crystal next time

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