Week ending function?

S

Steve

Hi does anyone know how to create a field within a report
which displays the week ending property - like date()
displays the current date?

Many thanks
Steven
 
D

Douglas J. Steele

You mean to know when Friday is relative to any day?

I think the following is correct (I didn't test it thoroughly)

Function FridayOfThisWeek(WhatDate As Date) As Date

FridayOfThisWeek = DateAdd("d", vbFriday - WeekDay(WhatDate), WhatDate)

End Function
 

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