Format Date "WW" incorrect

D

Dave

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.
 
V

Van T. Dinh

See Access VB Help on the different arguments you can use with the Format()
function.
 
D

Dave

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

Top