S
Sarah
I have a system that keeps track of annual contracts – the contracts can
cross over 2 years. I created a year field and 6 month fields (bi-monthly)
for each year. I run a report for the sales team each every other month to
let them know what clients they have and if any are up for renewal. The
client is marked with an asterisk if they are up for renewal. I have the
code below in a field to the left of the detail data. This report and many
other reports are very easy to create and run with this design (I know I
could have built the code more efficient. Ok, here is the problem, the
contracts are now monthly. I have adjusted the tables and reports and made
12 month fields for both years. When I expanded the code to check for
renewals to include the other six months it is too long to go in the field.
Any suggestions?
Thanks for your help!
=IIf([Year1]=Right([OpenArgs],4) And
IIf(Left([OpenArgs],3)="Jan",[jan1]=True,IIf(Left([OpenArgs],3)="Mar",[mar1]=True,IIf(Left([OpenArgs],3)="May",[may1]=True,IIf(Left([OpenArgs],3)="Jul",[jul1]=True,IIf(Left([OpenArgs],3)="Sep",[sep1]=True,IIf(Left([OpenArgs],3)="Nov",[Nov1]=True)))))),"",IIf([Year2]=Right([OpenArgs],4)
And
IIf(Left([OpenArgs],3)="Jan",[jan2]=True,IIf(Left([OpenArgs],3)="Mar",[mar2]=True,IIf(Left([OpenArgs],3)="May",[may2]=True,IIf(Left([OpenArgs],3)="Jul",[jul2]=True,IIf(Left([OpenArgs],3)="Sep",[sep2]=True,IIf(Left([OpenArgs],3)="Nov",[Nov2]=True)))))),"","*"))
Again, thanks - Sarah
cross over 2 years. I created a year field and 6 month fields (bi-monthly)
for each year. I run a report for the sales team each every other month to
let them know what clients they have and if any are up for renewal. The
client is marked with an asterisk if they are up for renewal. I have the
code below in a field to the left of the detail data. This report and many
other reports are very easy to create and run with this design (I know I
could have built the code more efficient. Ok, here is the problem, the
contracts are now monthly. I have adjusted the tables and reports and made
12 month fields for both years. When I expanded the code to check for
renewals to include the other six months it is too long to go in the field.
Any suggestions?
Thanks for your help!
=IIf([Year1]=Right([OpenArgs],4) And
IIf(Left([OpenArgs],3)="Jan",[jan1]=True,IIf(Left([OpenArgs],3)="Mar",[mar1]=True,IIf(Left([OpenArgs],3)="May",[may1]=True,IIf(Left([OpenArgs],3)="Jul",[jul1]=True,IIf(Left([OpenArgs],3)="Sep",[sep1]=True,IIf(Left([OpenArgs],3)="Nov",[Nov1]=True)))))),"",IIf([Year2]=Right([OpenArgs],4)
And
IIf(Left([OpenArgs],3)="Jan",[jan2]=True,IIf(Left([OpenArgs],3)="Mar",[mar2]=True,IIf(Left([OpenArgs],3)="May",[may2]=True,IIf(Left([OpenArgs],3)="Jul",[jul2]=True,IIf(Left([OpenArgs],3)="Sep",[sep2]=True,IIf(Left([OpenArgs],3)="Nov",[Nov2]=True)))))),"","*"))
Again, thanks - Sarah