Results 1 to 2 of 2

Thread: formule question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2004
    Location
    Netherlands
    Posts
    17

    formule question

    In my reports I have a list of numbers - the reports calculaids the averge of these numbers - Now I need the numbers below averge to turn red.

    In my atemps to do this I have the problem that de correct averge number is caculated at the end of the report witch result in the fact that all my numbers from the second row turn red?

    This hase my in a corner and I cant get out
    R.Schaap

  2. #2
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Re: formule question

    Yes , u have to handlle this trough query , how ??

    First u calculate the average of the numbers in a variable for example

    Declare @avgnum numeric
    set @avgnum=(select avg(number) from table1)

    select number,@avgnum from table1

    now u got the average with every number u r displaying , now u can write ur desired formula.
    Thanks and Regards,

    Muhammad Abbas

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