Calculating End-of-Week Date

D

dcornett63

My database is used to track employees' leave balances. Our week ends at
11:59 PM on Friday. I need to know what formula to enter into my query to
return that Friday (End-of-Week) date of the week that the leave time was
taken.

Example

LvDate - 2/19/2009
EOWDate - 2/20/2009

Please help
Thanks,
David
 
J

Jack Cannon

David

Let me modify it a little to better fit your application within your query.

EOWDate: [LvDate]+7-Weekday([LvDate],7)

Jack Cannon
 
D

dcornett63

Thanks Jack, I had actually figured it out from your first response. Works
great.
Thanks again
David

Jack Cannon said:
David

Let me modify it a little to better fit your application within your query.

EOWDate: [LvDate]+7-Weekday([LvDate],7)

Jack Cannon

Jack Cannon said:
This should do the job.

MyFridayDate: Date()+7-Weekday(Date(),7)

Jack Cannon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top