Dustin Stanley
asked on
MS Access Need Help With Query Criteria and Weekday Function Showing Last Wednesday To This Last Tuesday
I am needing some help with the Weekday function in a query criteria. I have never used it so I don't have much experience. I am working on a payroll system currently.
The idea here is to pay the employees on Fridays. The paycheck will consist of the days Wednesday until Tuesday. Then the employee receives the check on that following Friday.
I am having trouble understanding how to put this together. I thank you for help.
The idea here is to pay the employees on Fridays. The paycheck will consist of the days Wednesday until Tuesday. Then the employee receives the check on that following Friday.
I am having trouble understanding how to put this together. I thank you for help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
THANK YOU! This worked perfectly. I did have a small issue with the dates so I used in my query:
Between DateAdd("d",-7,DatePreviou sWeekday(D ate(),4)) And DatePreviousWeekday(Date() ,4)
Between DateAdd("d",-7,DatePreviou
Yes, the constants are not known in SQL.
ASKER