Results 1 to 14 of 14
  1. #1
    ipatch is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    9

    Need help for Fiscal Month Query

    CAn you please help me return monthly data on a fiscal month:

    my monthly cut-off is every 6th of the month. Therefore I need data returned from every 6th day of the month to 5th day of the following month. That is on a monthly basis.



    Thnak you

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    SEE Post # 7

    HTH
    Last edited by burrina; 05-06-2014 at 01:36 AM. Reason: Month Code

  3. #3
    ipatch is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    9
    Ok. I will try to upload the the table. thank you

  4. #4
    ipatch is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    9
    Hi sir! where will I send my file? thank you

  5. #5
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    You attach it here using the Go Advanced tab.

  6. #6
    ipatch is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    9

    mdb attachment

    Sorry I cant upload the file. it says error. i'll try again later. Anyway, I already tried the query but it did not return any data.. thank you again

  7. #7
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Here are some helpful Date Criteria;


    The current month:
    DateSerial(Year(Date()), Month(Date()), 1)
    The next month:
    DateSerial(Year(Date()), Month(Date()) + 1, 1)
    The last day of the current month:
    DateSerial(Year(Date()), Month(Date()) + 1, 0)
    The last day of the next month:
    DateSerial(Year(Date()), Month(Date()) + 2, 0)
    The first day of the previous month:
    DateSerial(Year(Date()), Month(Date())-1,1)
    The last day of the previous month:
    DateSerial(Year(Date()), Month(Date()),0)
    The first day of the current quarter:
    DateSerial(Year(Date()), Int((Month(Date()) - 1) / 3) * 3 + 1, 1)
    The last day of the current quarter:
    DateSerial(Year(Date()), Int((Month(Date()) - 1) / 3) * 3 + 4, 0)
    The first day of the current week (assuming Sunday = day 1):
    Date() - WeekDay(Date()) + 1
    The last day of the current week:
    Date() - WeekDay(Date()) + 7
    The first day of the current week (using settings in Options dialog box):
    Date() - WeekDay(Date(), 0) + 1
    The last day of the current week:
    Date() - WeekDay(Date(), 0) + 7

    HTH

  8. #8
    ipatch is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    9

    mdb file

    Hello sir, here's my raw mdb file. Kindly help to return data for each month with every 6th cut-off. thank you. Total in that date range on a monthly basis will be fine. thank you again
    Attached Files Attached Files

  9. #9
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Fiscal Month

    You should be able to work with this;
    Last edited by burrina; 05-06-2014 at 10:22 AM.

  10. #10
    ipatch is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    9
    Sir, if I create a report out of that query you have given, it just show all the data of the table. how will I sort them in a report. Example total sales from January 6th to February 5th, February 6th to March 5th, and so on...

  11. #11
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Your going to need a qry to Group by your date criteria. Personally, I would use a Start Date and a End Date for this so it could be flexible. Create a form to enter your dates and open the Report with that date criteria.

  12. #12
    ipatch is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    9
    Quote Originally Posted by burrina View Post
    Your going to need a qry to Group by your date criteria. Personally, I would use a Start Date and a End Date for this so it could be flexible. Create a form to enter your dates and open the Report with that date criteria.
    doing that would only return one data for that given start and end date. what i need is the total sale on a monthly basis but not 1st to 30th, instead 6th to 5th. because i need to differentiate it with my electricity cut-off which is every 6th.

  13. #13
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    WRONG: Total Sales is one thing, date criteria is another. As suggested, if you use a Calendar form, it will simplify your problem. You have date criteria in your query that is based on your Date Criteria Form and then you can Open a Report that is based on that criteria.

    Between [Forms]![frmDateCriteria]![txtstart] And [Forms]![frmDateCriteria]![txtend]

  14. #14
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Fiscal Month

    Here is an Example for you.

    Good Luck With Your Project!
    Attached Files Attached Files

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 43
    Last Post: 08-06-2014, 08:21 PM
  2. Replies: 6
    Last Post: 05-05-2014, 10:51 PM
  3. Replies: 2
    Last Post: 03-07-2013, 03:14 PM
  4. Fiscal Quarters in a query
    By brownsugar7210 in forum Queries
    Replies: 10
    Last Post: 12-06-2012, 01:14 PM
  5. fiscal year
    By RedGoneWILD in forum Programming
    Replies: 4
    Last Post: 08-04-2010, 01:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums