D
dzirkelb
Here is my IIF statement:
WHERE IIF(('::GreatTotalScore::'=''), True, TotalScore>=::GreatTotalScore:
ANd IIF('::LessTotalScore::'=''), True, TotalScore <= ::LessTotalScore:
This works correctly. It is pulling the data from a query made in MS Access
for the total score of numerous fields. However, It only works if both
criteria are put in, meaning, I can't leave GreatTotalScore or LessTotalScore
blank or it will produce an error stating missing operator.
I have made numerous IIF statements in the past all identical to this one;
however, they have all been for text fields. If I change this statement to
the following:
WHERE IIF(('::GreatTotalScore::'=''), True,
TotalScore>='::GreatTotalScore::')
ANd IIF('::LessTotalScore::'=''), True, TotalScore <= '::LessTotalScore::')
(added single quotes to 2nd portion of IIF statemtn on both).
That statement works also for everything MINUS scores of 100...it reads them
as 1 instead of 100 (cause its seeing it as text).
Does anyone know how I can repair this statement to work like the text
version so it skips the input box if its null AND work like the numeric
version to see a score of 100 as 100? Thanks!
WHERE IIF(('::GreatTotalScore::'=''), True, TotalScore>=::GreatTotalScore:
ANd IIF('::LessTotalScore::'=''), True, TotalScore <= ::LessTotalScore:
This works correctly. It is pulling the data from a query made in MS Access
for the total score of numerous fields. However, It only works if both
criteria are put in, meaning, I can't leave GreatTotalScore or LessTotalScore
blank or it will produce an error stating missing operator.
I have made numerous IIF statements in the past all identical to this one;
however, they have all been for text fields. If I change this statement to
the following:
WHERE IIF(('::GreatTotalScore::'=''), True,
TotalScore>='::GreatTotalScore::')
ANd IIF('::LessTotalScore::'=''), True, TotalScore <= '::LessTotalScore::')
(added single quotes to 2nd portion of IIF statemtn on both).
That statement works also for everything MINUS scores of 100...it reads them
as 1 instead of 100 (cause its seeing it as text).
Does anyone know how I can repair this statement to work like the text
version so it skips the input box if its null AND work like the numeric
version to see a score of 100 as 100? Thanks!