Last day of the week code?

  • Thread starter ielmrani via AccessMonster.com
  • Start date
I

ielmrani via AccessMonster.com

Hi All,
I have a field (in a query) called Start date.
Our company work days are Friday to Saturday. I am looking for a way to add
a field called End date to generate the last day of the week date(which is
Saturday).
For example:

Start day End day

05/15/2006 05/20/2006
05/17/2006 05/20/2006
05/19/2006 05/20/2006

05/24/2006 05/27/2006
05/25/2006 05/27/2006

thanks
 
I

ielmrani via AccessMonster.com

Correction...
Our company work days are Monday to Saturday.
Thanks
 
I

ielmrani via AccessMonster.com

I got it.
Here is the formula in case anybody wants to know:

[End Day]: [Start Date] + (7 - Weekday([Start Date]))


Thanks

Ismail
 

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