[quoted text, click to view] On Jul 30, 3:52 pm, "Norman Yuan" <NoAddr...@NoEmail.fake> wrote:
> You want a field's value on the report equals to the result of the
> expression, right? If so:
>
> 1. Use IIF(condition, expression1, expression2);
> 2. Do not use square braket "[" "]".
>
> For example:
>
> =IIF(Sum(Fileds!HRS.Value)*14.04 > Sum(Fileds!AMT_EARNED.Value),
> Sum(Fields!HRS.Value)*14.04-Sum(Fields!AMT_EARNED.Value,0)
>
> "abz" <abz81s...@gmail.com> wrote in message
>
> news:1185835154.502686.88260@x35g2000prf.googlegroups.com...
>
>
>
> > Hello everyone, I'm having trouble writing an IF...Then...Else
> > expression. I'm still new at vb so all help available is helpful. So
> > far this is what I have.
>
> > =IF [Sum(Fields!HRS.Value) * 14.04] > [Sum(Fields!AMT_EARNED.Value)]
> > THEN
> > [Sum(Fields!HRS.Value) * 14.04] - [Sum(Fields!AMT_EARNED.Value)]
> > Else= "0"
>
> > Any suggestions???? Corrections more likely....help,
> > pleeeaaseee....this is the only thing holding me back from finishing a
> > report on SSRS 2000.
>
> > Thanks,
> > Abner- Hide quoted text -
>
> - Show quoted text -
Thank you very much for your help but it still gives me an
error......what I want it to do is if the sum of HRS field * 14.04 is
greater than the sum of AMT_EARNED, Then to multiply 14.04 by the sum
of HRS and all that subtracted by the sum of AMT_EARNED.........but if
the sum of AMT_EARNED is Greater then just display a zero.....