Results 1 to 3 of 3
  1. #1
    waqas is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    117

    Question Month wise two years data comparison

    dear all,



    i have two years data in one table i want to show month wise comparison in one report,

    what should i do?

    column should be like as below.

    2011 2012

    month, year, normal hrs, OT hrs, total hrs ---------------------month, year, normal hrs, OT hrs, total hrs,

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    Write your query to pull all of the data and then use grouping in your report to do the rest...

    Or throw it into Excel and do a pivot table off of it for an interactive approach.

  3. #3
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    If you want to show the two annual datasets side-by-side in the report, then I would suggest creating a query for each year

    qry2011Data and qry2012Data

    Then create a third query that uses the 2 annual data queries and join by the month field in each. Include all the fields you want from both annual data (you will have to rename on set of fields with aliases. Base the report on this third query.

    By the way, the words "month" and "year" are reserved words in Access, so they should not be used as field names or table names.

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

Similar Threads

  1. Compare data across years
    By lvh519 in forum Queries
    Replies: 4
    Last Post: 02-16-2012, 01:46 PM
  2. Replies: 11
    Last Post: 01-25-2012, 09:46 AM
  3. minus date wise sales a=n?
    By alex_raju in forum Access
    Replies: 1
    Last Post: 07-30-2011, 01:23 PM
  4. Date Comparison swapping month and day in VB
    By Mary Fall in forum Access
    Replies: 5
    Last Post: 04-21-2011, 06:31 AM
  5. Tracking End of Month Data
    By spherearrow in forum Database Design
    Replies: 5
    Last Post: 09-13-2010, 10:55 AM

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