Hi,
I need to make different criteria depending on the current month. The report I have set up for every month, no matter what month it is has this code.
(
{joblog_.FREQUENCY} = "MONTHLY" and
INSTR({Joblog_.DISTRIBUTION}, "AC") <> 0 and
{Joblog_.DISTRIBUTION}<>"AC/TW" and
{Joblog_.JOBNAME}<>"" and
(
Ucase(totext(CurrentDate,"MMM")) in {joblog_.FREQUENCY DETAIL} OR
{joblog_.FREQUENCY DETAIL} = "REQUEST" OR
{joblog_.FREQUENCY DETAIL} = "NONE"
)
)
or
(
{joblog_.FREQUENCY} = "SPECIAL" and
INSTR({Joblog_.DISTRIBUTION}, "AC") <> 0 and
{Joblog_.DISTRIBUTION}<>"AC/TW" and
{Joblog_.JOBNAME}<>"" and
(
Ucase(totext(CurrentDate,"MMM")) in {joblog_.FREQUENCY DETAIL} OR
{joblog_.FREQUENCY DETAIL} = "REQUEST" OR
{joblog_.FREQUENCY DETAIL} = "NONE"
)
)
or
(
{joblog_.FREQUENCY} = "DAILY" and
INSTR({Joblog_.DISTRIBUTION}, "AC") <> 0 and
{Joblog_.DISTRIBUTION}<>"AC/TW" and
{Joblog_.JOBNAME}<>""
)
or
(
{joblog_.FREQUENCY} = "WEEKLY" and
INSTR({Joblog_.DISTRIBUTION}, "AC") <> 0 and
{Joblog_.DISTRIBUTION}<>"AC/TW" and
{Joblog_.JOBNAME}<>""
)
What I need to do is add to the above - if the current month is a quarterly month, semi annual or annual. Say if it is March, June, September or December I would need to add a part for joblog_.Frequency = Quarterly.
June would also contain a part for SemiAnnual and December would contain a part for SemiAnnual and Annual.
I think using IIf, Else, ElseIF would work but don't know how to do it with so many "or" in the code I already have. I could always make 12 reports but don't want to do that. If I can get some help on June, I can probably figure out the semiannual and annual. Please help.
Lisa
I need to make different criteria depending on the current month. The report I have set up for every month, no matter what month it is has this code.
(
{joblog_.FREQUENCY} = "MONTHLY" and
INSTR({Joblog_.DISTRIBUTION}, "AC") <> 0 and
{Joblog_.DISTRIBUTION}<>"AC/TW" and
{Joblog_.JOBNAME}<>"" and
(
Ucase(totext(CurrentDate,"MMM")) in {joblog_.FREQUENCY DETAIL} OR
{joblog_.FREQUENCY DETAIL} = "REQUEST" OR
{joblog_.FREQUENCY DETAIL} = "NONE"
)
)
or
(
{joblog_.FREQUENCY} = "SPECIAL" and
INSTR({Joblog_.DISTRIBUTION}, "AC") <> 0 and
{Joblog_.DISTRIBUTION}<>"AC/TW" and
{Joblog_.JOBNAME}<>"" and
(
Ucase(totext(CurrentDate,"MMM")) in {joblog_.FREQUENCY DETAIL} OR
{joblog_.FREQUENCY DETAIL} = "REQUEST" OR
{joblog_.FREQUENCY DETAIL} = "NONE"
)
)
or
(
{joblog_.FREQUENCY} = "DAILY" and
INSTR({Joblog_.DISTRIBUTION}, "AC") <> 0 and
{Joblog_.DISTRIBUTION}<>"AC/TW" and
{Joblog_.JOBNAME}<>""
)
or
(
{joblog_.FREQUENCY} = "WEEKLY" and
INSTR({Joblog_.DISTRIBUTION}, "AC") <> 0 and
{Joblog_.DISTRIBUTION}<>"AC/TW" and
{Joblog_.JOBNAME}<>""
)
What I need to do is add to the above - if the current month is a quarterly month, semi annual or annual. Say if it is March, June, September or December I would need to add a part for joblog_.Frequency = Quarterly.
June would also contain a part for SemiAnnual and December would contain a part for SemiAnnual and Annual.
I think using IIf, Else, ElseIF would work but don't know how to do it with so many "or" in the code I already have. I could always make 12 reports but don't want to do that. If I can get some help on June, I can probably figure out the semiannual and annual. Please help.
Lisa