Format Date "WW" incorrect

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a field which converts dates to the respective calender week by using
Format ([date_field],ww).

This worked Ok for 2004, however in 2005 it is 1 week in front of itself as
it is counting the first week of January as calender week 2 instead of
calender week 1.

I know there is a way to set the format to count the first calender week as
the week having 4 days in it (as can be set up in outlook calender).

Please can anyone let me know the formula for this.
 
See Access VB Help on the different arguments you can use with the Format()
function.
 
Hi and many thanks

I have just found it and have tried it with great success.

I have used: Format ([datefield],"ww",0,2) and it works fine.

Once again many thanks
Dave.


Van T. Dinh said:
See Access VB Help on the different arguments you can use with the Format()
function.

--
HTH
Van T. Dinh
MVP (Access)




Dave said:
I have a field which converts dates to the respective calender week by using
Format ([date_field],ww).

This worked Ok for 2004, however in 2005 it is 1 week in front of itself as
it is counting the first week of January as calender week 2 instead of
calender week 1.

I know there is a way to set the format to count the first calender week as
the week having 4 days in it (as can be set up in outlook calender).

Please can anyone let me know the formula for this.
 

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

Similar Threads

Week Numbers 1
Weeknumbers 4
week (WW) conversion to date in Access Graph 2
Calender/roster 2010 1
Designing a Recruting Database 10
day names 4
Reminders question.. 2
Floating calender 1

Back
Top