Results 1 to 3 of 3
  1. #1
    Alex Motilal is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Nov 2008
    Location
    Coimbatore, India
    Posts
    192

    Monthly report

    I would like to generate Monthly report with Week as subtotals. The first day of the week should be Sunday. For example, the report for the Month of June, 2018 should be as below:

    For the 1st Week data should be for 1st & 2nd Dates (Since the 1st day is Friday) and the Subtotal on 1st Week (ie, total for 1st & 2nd dates)

    For the 2nd Week data should be for dates from 3rd to 9th and the Subtotal on 2nd Week
    And so on till the 5th Week.


    Is it possible & if so I require the guidelines.



    Alex

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    make a form with 2 text boxes, txtStartDate, txtEndDate.
    user fills in the dates.

    make a query to pull your data using these dates, qsDateRngData :
    select * from table where [DateFld] between forms!myForm!txtStartDate and forms!myForm!txtEndDate

    now make a report that uses this query, qsDateRngData

    I made my form set the dates using controls (or enter manually):
    Click image for larger version. 

Name:	rpts ytd.jpg 
Views:	20 
Size:	45.5 KB 
ID:	34653

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can add a "last day of week" field to your query so you can group/sum on it in the report. Something like:

    DateAdd("d",7-Weekday(DateFieldName,1),DateFieldName)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 15
    Last Post: 09-01-2015, 12:20 PM
  2. Monthly Report
    By mhockey88 in forum Reports
    Replies: 3
    Last Post: 07-16-2014, 11:26 AM
  3. creating monthly report
    By kyeiframseth in forum Access
    Replies: 1
    Last Post: 04-04-2013, 06:52 AM
  4. Replies: 6
    Last Post: 11-10-2012, 09:49 PM
  5. Query + monthly report
    By tareksul in forum Reports
    Replies: 3
    Last Post: 12-19-2010, 01:09 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