T
TonyWilliams via AccessMonster.com
I have a report that is produced in June and December, as signified by the
value of a control txtmonth. I want to create an IIF statement so that if the
txtmonth is June the label says
"New deals in 6 months ended [txtmonth]" but if the report is printed in
December the label says
"New deals in Year([txtmonth])"
I had created this IIF statement but it doesn't pick up the fact that it
includes controls:
=IIf(Month([txtmonth])=12,"New deals in Year([txtmonth])","New deals in 6
months ended [txtmonth]")
I think it assumes that all the text in between the quotes is text and not a
field.
Can anyone help?
Thanks
Tony
value of a control txtmonth. I want to create an IIF statement so that if the
txtmonth is June the label says
"New deals in 6 months ended [txtmonth]" but if the report is printed in
December the label says
"New deals in Year([txtmonth])"
I had created this IIF statement but it doesn't pick up the fact that it
includes controls:
=IIf(Month([txtmonth])=12,"New deals in Year([txtmonth])","New deals in 6
months ended [txtmonth]")
I think it assumes that all the text in between the quotes is text and not a
field.
Can anyone help?
Thanks
Tony