G
Guest
Hello,
Please bare with me as I am somewhat new to Access. I am trying to set up an
IIf expression in a query and it is not returning any results. I am trying to
calculate the amount of overtime for my department. The overtime is based on
the amount of open items that are more than 20 days old. I already have a
table set up to pull those items. I have set up a quick table to just count
the amount of open items that are more than 20 days old, but when I create a
query with an IIf expression in the criteria field no results are given.
Below is my expression.
IIf([Friday Over Time Count]![CountOfOPENITEM_SEQ_NBR]>351,15,IIf([Friday
Over Time Count]![CountOfOPENITEM_SEQ_NBR]>301,10,IIf([Friday Over Time
Count]![CountOfOPENITEM_SEQ_NBR]>251,8,IIf([Friday Over Time
Count]![CountOfOPENITEM_SEQ_NBR]>201,5,IIf([Friday Over Time
Count]![CountOfOPENITEM_SEQ_NBR]>151,4,IIf([Friday Over Time
Count]![CountOfOPENITEM_SEQ_NBR]>101,2,No))))))
What am I doing wrong? Am I going about this the wrong way (would not
suprise me)?
Any and all help would be greatly appreciated. Let me know if I am not
making any sense at all and I will try to explain it in a different way.
Thanks,
Josh
Please bare with me as I am somewhat new to Access. I am trying to set up an
IIf expression in a query and it is not returning any results. I am trying to
calculate the amount of overtime for my department. The overtime is based on
the amount of open items that are more than 20 days old. I already have a
table set up to pull those items. I have set up a quick table to just count
the amount of open items that are more than 20 days old, but when I create a
query with an IIf expression in the criteria field no results are given.
Below is my expression.
IIf([Friday Over Time Count]![CountOfOPENITEM_SEQ_NBR]>351,15,IIf([Friday
Over Time Count]![CountOfOPENITEM_SEQ_NBR]>301,10,IIf([Friday Over Time
Count]![CountOfOPENITEM_SEQ_NBR]>251,8,IIf([Friday Over Time
Count]![CountOfOPENITEM_SEQ_NBR]>201,5,IIf([Friday Over Time
Count]![CountOfOPENITEM_SEQ_NBR]>151,4,IIf([Friday Over Time
Count]![CountOfOPENITEM_SEQ_NBR]>101,2,No))))))
What am I doing wrong? Am I going about this the wrong way (would not
suprise me)?
Any and all help would be greatly appreciated. Let me know if I am not
making any sense at all and I will try to explain it in a different way.
Thanks,
Josh