• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 710
  • 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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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