Results 1 to 5 of 5
  1. #1
    GinaFlan is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Location
    Texas
    Posts
    68

    Report from crosstab how to update for monthly reports

    Click image for larger version. 

Name:	ReportfromCrosstabQuery.PNG 
Views:	11 
Size:	88.2 KB 
ID:	18441This is a report I created from a crosstab query. I have a form called Scorecard where Employees will add data each month. My plan is a button on the form for them to generate the report. I did a test and added data for October, and the crosstab query updated but the form did not. Is that because it is a crosstab? If I write code in the sql statement, can I generate columns for all months of the year, so the report will update automatically.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Correct, crosstabs can change depending on the data.
    you cant report a crosstab unless you map every possible outcome.

    SO..
    make a 'report' table that HAS every possible field outcome,
    empty the table
    append the crosstab data
    run report

  3. #3
    GinaFlan is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Location
    Texas
    Posts
    68
    Ah ok I will try that thank you

  4. #4
    GinaFlan is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Location
    Texas
    Posts
    68

    I used the in statement but now she wants comments as a column so multivalue crosstab is objective t

    Child Nutrition Query.pdf

    The attached is a report with the crosstab query.


    I used the "in" statement to create the columns for the months, but now the department head would also like the comments as a column so that means multivalue crosstab I will send more info as I research. I am at home, this laptop is slow. She also wants the report to query two month previous from current date, which would display 3 months. Anyway going to figure that out too. I'm wiped out lol


    [TRANSFORM Max(Scorecards.Results) AS MaxOfResults
    SELECT Scorecards.Groups, Scorecards.Goals, Scorecards.Benchmarks, Scorecards.Comments, Scorecards.MetGoal
    FROM Scorecards
    WHERE (((Scorecards.Groups)="Child Nutrition"))
    GROUP BY Scorecards.Groups, Scorecards.Contact, Scorecards.Goals, Scorecards.Benchmarks, Scorecards.Comments, Scorecards.MetGoal
    PIVOT Scorecards.ForTheMonth in ('January','February','March','April','May','June' ,'July','August','September','October','November', 'December')]

  5. #5
    GinaFlan is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Location
    Texas
    Posts
    68
    Set the view to two pages for the pdf it looks better

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

Similar Threads

  1. Monthly Report
    By mhockey88 in forum Reports
    Replies: 3
    Last Post: 07-16-2014, 11:26 AM
  2. Monthly Sales reports with wholesale average
    By Yarrrm8e in forum Reports
    Replies: 3
    Last Post: 01-31-2014, 04:39 PM
  3. Replies: 6
    Last Post: 11-10-2012, 09:49 PM
  4. Report with monthly totals?
    By KrisDdb in forum Access
    Replies: 7
    Last Post: 12-06-2011, 11:49 AM
  5. Automated Email Reports - monthly no clicks
    By Bamber in forum Reports
    Replies: 1
    Last Post: 05-12-2010, 12:34 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