Results 1 to 4 of 4
  1. #1
    EricE is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    3

    Question Group reports on odd year

    Similar to the fiscal year, I'm trying to group items in a report on a contract year.



    It starts at June 16, 2009 which (using Wolfram Alpha) is day 168 and runs to June 15, 2010. It's June 16, 2010 to June 15, 2011 for the next contract year - so forth and so on.

    So in the footer of the group in the report I added a text field, put this in the Control Source for the text field:

    Code:
    =Year(DateAdd("d",+168,[Invoice Date]))
    And it is grouping by multiple years - it just isn't grouping from June 16 to June 15 of the next year like I desire. It's also not grouping on the standard calendar years - I haven't been able to figure out what date range it is grouping since I don't have enough rows - that's probably going to be my next step to try to narrow down exactly what the heck it is doing.

    Obviously I'm doing something wrong - anything obvious jump out an anyone? easier way to do this perhaps?

    Thanks!

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    I'm rusty on reports, so I would have the values to be grouped

    available in the query. Your post suggests that you expect the report to group on a value which you are calculating in the footer. I've reread your post and wonder if it is really grouping on any value.

  3. #3
    EricE is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    3

    Arrow

    Quote Originally Posted by hertfordkc View Post
    available in the query. Your post suggests that you expect the report to group on a value which you are calculating in the footer.
    I'm not sure where at this point Access decides to do grouping from - the header, footer, report properties - I've yet fo find any documentation, tutorials or guidance that has any kind of overview or direction on reporting and grouping in reporting that makes sense.

    I've reread your post and wonder if it is really grouping on any value.
    It is grouping, but it doesn't have value since it's not grouping in a way that's useful. Let's assume I know nothing about grouping in reports

    I have three things I need to group on:

    A) An organization code
    B) Invoice date
    C) Inividual line items that among other things have a unique part number

    I'd like the report to group based on:

    1) Organization
    2) Group the line items, by invoice date yearly according to the contract year (not calendar year)
    3) Group multiple line tiems by part number and then sub-total each grouping of the same line items

    I have the grouping by organization (group 1) working. I have the grouping by line items with the sub-totaling the line items in the header for that group (group 3) working.

    What I can't get to work is the grouping of the line items by contract year (group 2). Out of frustration I ended up figuring out how to set up date range for the report; I ended up running three seperate reports to cover the three contract years I need. But I know that there has to be a way to do it with grouping in Access, I'm just not up to speed enough with how grouping actually works.

    It also doesn't help that the interface in Access 2010 doesn't mach 95% of the tutorials out there that are based on previous versions of the product

    If you do decide to take pity on me and help me out I would be most grateful! Even if it's referring me to an Access 2010 based tutorial on grouping.

    Thanks!

  4. #4
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    It is very difficult for me to communicate in abstract terms,

    but since I have Access 2007, I don't know if I could open anything which you sent to me.
    Let me pose a few hypotheses and see if they help.
    1) You have a query which includes fields for Organization Code and Invoice date.
    2) From that query, you can use the report wizard to group and total things.
    3) As a further grouping, you would also like to group by contract year.

    Perhaps including a calculated field in your queries which generates "Contract Year" based on the date formula which you posted would allow you to specify that field for grouping in the report wizard.

    I'm not sure that the report wizard will give the final answer, but I think it will help you down the road if you can use it as a basis.

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

Similar Threads

  1. Year over Year Comparision of Portfolio
    By richard70 in forum Queries
    Replies: 2
    Last Post: 10-31-2011, 08:19 PM
  2. Percentages in reports for group rows
    By John Donovan in forum Reports
    Replies: 1
    Last Post: 12-28-2010, 09:10 AM
  3. Replies: 5
    Last Post: 11-29-2010, 08:16 AM
  4. Group & Reports (more than 4 Groups??)
    By JohnS in forum Reports
    Replies: 3
    Last Post: 10-01-2009, 07:11 AM
  5. columns for group detail but not group header?
    By Coolpapabell in forum Reports
    Replies: 0
    Last Post: 08-21-2009, 08:53 AM

Tags for this Thread

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