C
Cornfused
I have a parameter query with the field [Start_Date] set as one of the user
input fields. For criteria, I've entered the following:
IIf(Format([Enter Start Date of ILT],"dddd")="Tuesday",([Enter Start Date of
ILT]-1),IIf(Format([Enter Start Date of ILT],"dddd")="Wednesday",([Enter
Start Date of ILT]-2),IIf(Format([Enter Start Date of
ILT],"dddd")="Thursday",([Enter Start Date of ILT]-3),IIf(Format([Enter Start
Date of ILT],"dddd")="Friday",([Enter Start Date of ILT]-4),[Enter Start Date
of ILT]))))
So, I get the error that the calculation is too complex or that the syntax
is bad. When I did some experimentation to try to locate the problem area,
it seems that the Format function may be the culprit.
Please make suggestions as to how I can do this differently and get the same
result - that of setting the [Start_Date] to the most recent Monday
regardless of the date entered by the user.
Thanks!
input fields. For criteria, I've entered the following:
IIf(Format([Enter Start Date of ILT],"dddd")="Tuesday",([Enter Start Date of
ILT]-1),IIf(Format([Enter Start Date of ILT],"dddd")="Wednesday",([Enter
Start Date of ILT]-2),IIf(Format([Enter Start Date of
ILT],"dddd")="Thursday",([Enter Start Date of ILT]-3),IIf(Format([Enter Start
Date of ILT],"dddd")="Friday",([Enter Start Date of ILT]-4),[Enter Start Date
of ILT]))))
So, I get the error that the calculation is too complex or that the syntax
is bad. When I did some experimentation to try to locate the problem area,
it seems that the Format function may be the culprit.
Please make suggestions as to how I can do this differently and get the same
result - that of setting the [Start_Date] to the most recent Monday
regardless of the date entered by the user.
Thanks!