Hello All,
Could someone help me with a query question? The error message I am getting is "Undefined Function "IF" in expression"
I am trying to build an if statement in the criteria section on field [Pay_date].
Is it possible to do this? My IF statement is below:
DtTest: if(Weekday(Date())="6",[Main_PPY_TBL]![Pay_Date]=Day(Date())+8 or ",[Main_PPY_TBL]![Pay_Date]=Day(Date())+9,[Main_PPY_TBL]![Pay_Date]=Day(Date())+7)
The Pay date field is a day field, so it is anywhere from 1 to 31. Basically I need the query to pull, "if the day the query is ran is on Friday then pull two additional days, where are day(date())+8 and day(Date())+9, if it is any other day then just pull day(date())+7.
I am not sure if I can enter this into the criteria section of the field. I have also tried entering it in the Field sectiona as well.
Thanks for everything!
TallMan
Could someone help me with a query question? The error message I am getting is "Undefined Function "IF" in expression"
I am trying to build an if statement in the criteria section on field [Pay_date].
Is it possible to do this? My IF statement is below:
DtTest: if(Weekday(Date())="6",[Main_PPY_TBL]![Pay_Date]=Day(Date())+8 or ",[Main_PPY_TBL]![Pay_Date]=Day(Date())+9,[Main_PPY_TBL]![Pay_Date]=Day(Date())+7)
The Pay date field is a day field, so it is anywhere from 1 to 31. Basically I need the query to pull, "if the day the query is ran is on Friday then pull two additional days, where are day(date())+8 and day(Date())+9, if it is any other day then just pull day(date())+7.
I am not sure if I can enter this into the criteria section of the field. I have also tried entering it in the Field sectiona as well.
Thanks for everything!
TallMan