convert date to week, starting at financial year

  • Thread starter OTWarrior via AccessMonster.com
  • Start date
O

OTWarrior via AccessMonster.com

I have query that counts how many bookings were made on a certain date, but I
need to total it by each week (for example 5 on monday and 2 on wednesday,
week 1 total = 7)

I have worked out that you use: Format([dteDate],"ww") for the week, but I
need to set the earliest date selected as week one, as this would be the
start of the financial year (earliest date is April first)

how would I set this up? would I need a table with all the dates in with the
week number next to it?
 
G

Guest

My recommendation would be to use the DateDiff( ) function in combination
with the DateSerial function; something like the following. Getting the
right year depends on how you number your Fiscal Years, the following example
starts FY08 on 1 April 07

(DateDiff("d", DateSerial(Year(MyDate) + (Month(MyDate)<4), 4, 1), MyDate)
\7) + 1

Replace "MyDate" with the name of your DateField.

HTH
Dale
 

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 Start Date 11
VBA Date Function 1
number of records per week 2
Number of week in the year 2
Convert date to week number 3
Convert Week # to Date 1
Financial Year query 3
Week number problem 2

Top