Question : Why does  Format([Del Date],"ww") give 53 weeks?

Hi Experts,

I am using Format([Del Date],"ww") in a query. I noticed that I get week 53. How come? And how can I get all the dates to be in a 52 week period?

Answer : Why does  Format([Del Date],"ww") give 53 weeks?

365 / 7 = 52 with 1 leftover.  What week would you think that '1' would be?

If (Format([Del Date], "ww") = "53") Then
    = "52"
Else
    = Format([Del Date], "ww")
End If
Random Solutions  
 
programming4us programming4us