I'm going to try and explain this as best as I can :)
 I have calculated fields that has the following expressions - I've
 named each textbox hoping that I could grab them in the expression but
 I have no idea how':
 1. totalMarket: =iif(sum(Fields!Wins.Value) = 0, 0, sum( Fields!
 Wins.Value) + iif(sum(Fields!Pending.Value) = 0, 0, sum(Fields!
 Pending.Value))) - iif(sum(Fields!Losses.Value) = 0, 0, sum(Fields!
 Losses.Value))
 2. remainingSales = =iif(Sum(Fields!Pending.Value)=0, 0, Sum(Fields!
 Pending.Value))
 I need the next text box (marketPercent) to do the following...
 totalMarket - remainingSales / totalMarket
 I used all the expression above to make it work - but there has to be
 an easier way.. I tried using..
 =iif(Sum(ReportItem!totalMarket.Value)) ... etc but that syntax did
 not work... does anyone know how to grab the name of the textbox in
 an expression?
 ps - this is not a header or a footer - it's in the actual form
 Thanks in advance!
 LisaOn Jun 6, 10:38 am, peashoe <peas...@.yahoo.com> wrote:
> I'm going to try and explain this as best as I can :)
> I have calculated fields that has the following expressions - I've
> named each textbox hoping that I could grab them in the expression but
> I have no idea how':
> 1. totalMarket: =iif(sum(Fields!Wins.Value) = 0, 0, sum( Fields!
> Wins.Value) + iif(sum(Fields!Pending.Value) = 0, 0, sum(Fields!
> Pending.Value))) - iif(sum(Fields!Losses.Value) = 0, 0, sum(Fields!
> Losses.Value))
> 2. remainingSales = =iif(Sum(Fields!Pending.Value)=0, 0, Sum(Fields!
> Pending.Value))
> I need the next text box (marketPercent) to do the following...
> totalMarket - remainingSales / totalMarket
> I used all the expression above to make it work - but there has to be
> an easier way.. I tried using..
> =iif(Sum(ReportItem!totalMarket.Value)) ... etc but that syntax did
> not work... does anyone know how to grab the name of the textbox in
> an expression?
> ps - this is not a header or a footer - it's in the actual form
> Thanks in advance!
> Lisa
As far as I know, referencing the textbox control by an alias is not
possible. Referencing the textbox by the expression used is most
likely the only way to reference it. Sorry that I could not be of
greater assistance.
Regards,
Enrique Martinez
Sr. Software Consultantsql
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment