K
kmilberg
I am a relatively new user to Access and I am using Access 2000. I am
using the report and group headers to calculate totals for the report
and for the most part it is working well. However, I have some
aggregate functions in the controls that appear to be too long and
cause the report to revert directly back to the design veiw when it is
run. For example:
=IIf(Sum((([RefCode1]>="110" And [RefCode1]<="119") Or
([RefCode2]>="110" And [RefCode2]<="119") Or ([RefCode3]>="110" And
[RefCode3]<="119") Or ([RefCode4]>="110" And [RefCode4]<="119") Or
([RefCode5]>="110" And [RefCode5]<="119")),1,0))
will cause the report to not be able to run (i get no error message,
but the report just reverts back to design veiw), but if i take out one
of the agruements (it doesn't matter which one)... so for example:
=IIf(Sum((([RefCode1]>="110" And [RefCode1]<="119") Or
([RefCode2]>="110" And [RefCode2]<="119") Or ([RefCode3]>="110" And
[RefCode3]<="119") Or ([RefCode4]>="110" And [RefCode4]<="119")),1,0))
this one works just fine.
in addtion, in the detail of the report the full expression which is
for a check box also works just fine:
=IIf((([RefCode1]>="110" And [RefCode1]<="119") Or ([RefCode2]>="110"
And [RefCode2]<="119") Or ([RefCode3]>="110" And [RefCode3]<="119") Or
([RefCode4]>="110" And [RefCode4]<="119") Or ([RefCode5]>="110" And
[RefCode5]<="119")),True,False)
I have been at this for days trying to figure out different ways around
this, but just can't seem to figure it out. the expression just doesn't
seem to be that long and i'm unsure how to get this to work.
please help if you can.
thanks!
using the report and group headers to calculate totals for the report
and for the most part it is working well. However, I have some
aggregate functions in the controls that appear to be too long and
cause the report to revert directly back to the design veiw when it is
run. For example:
=IIf(Sum((([RefCode1]>="110" And [RefCode1]<="119") Or
([RefCode2]>="110" And [RefCode2]<="119") Or ([RefCode3]>="110" And
[RefCode3]<="119") Or ([RefCode4]>="110" And [RefCode4]<="119") Or
([RefCode5]>="110" And [RefCode5]<="119")),1,0))
will cause the report to not be able to run (i get no error message,
but the report just reverts back to design veiw), but if i take out one
of the agruements (it doesn't matter which one)... so for example:
=IIf(Sum((([RefCode1]>="110" And [RefCode1]<="119") Or
([RefCode2]>="110" And [RefCode2]<="119") Or ([RefCode3]>="110" And
[RefCode3]<="119") Or ([RefCode4]>="110" And [RefCode4]<="119")),1,0))
this one works just fine.
in addtion, in the detail of the report the full expression which is
for a check box also works just fine:
=IIf((([RefCode1]>="110" And [RefCode1]<="119") Or ([RefCode2]>="110"
And [RefCode2]<="119") Or ([RefCode3]>="110" And [RefCode3]<="119") Or
([RefCode4]>="110" And [RefCode4]<="119") Or ([RefCode5]>="110" And
[RefCode5]<="119")),True,False)
I have been at this for days trying to figure out different ways around
this, but just can't seem to figure it out. the expression just doesn't
seem to be that long and i'm unsure how to get this to work.
please help if you can.
thanks!