• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 717
  • Last Modified:

URGENT 500 pts: How to calculate Fiscal Week in Microsoft Access Query

I'm trying to calculate the Fiscal Week in a select query based on a paydate.  My fiscal year starts on 6/28/2008 and runs through 7/3/2009.  The week starts on Saturday and ends on Friday.  Please tell me how to get the fiscal week in a select query with a calculation?

I'm setting at 500 pts because of urgency.

Thanks
0
Awesome_MS
Asked:
Awesome_MS
  • 2
1 Solution
 
TextReportCommented:
Very basic first stab as you have not detailed the full boudaries and requirements with regards to future years.

FW: INT(datediff("d", DateSerial(2008,06,28), DateSerial(2008,06,28)+7) / 7) + 1

Cheers, Andrew
0
 
TextReportCommented:
Forgot to add your field

FW: INT(datediff("d", DateSerial(2008,06,28), [PayDate]) / 7) + 1

Cheers, Andrew
0
 
Awesome_MSAuthor Commented:
Very quick and perfect!!!  Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now