Results 1 to 2 of 2
  1. #1
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141

    Report on crosstab Query when action is not in Query

    I have a table that has column: [actions] users input actions from a Combo box that provides 5 possible actions.


    I want a report that sorts by chosen Month - and displays user then count for each action.
    Created a crosstab Query that takes the month from a form and goes to report that works great. AS LONG AS all of the actions have been used at least once
    If there is an action that was not used that month it errors expected value for " not found

    What do you suggest?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Need a dataset that pairs each of the 5 possible actions with every possible month. This can be generated with a query that includes Actions table and a dataset (table or query) of all possible months without a JOIN clause. This will cause a Cartesian relationship - every record of each table will associate with every record other table.

    Then join that query to the table of monthly action data (compound join on action and year/month) and do CROSSTAB.

    Actions are the header criteria for CROSSTAB? An alternative is to emulate a CROSSTAB with expressions. This would be fairly simple since you have only 5 possible actions. Review: http://www.datapigtechnologies.com/f.../crosstab.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. report from crosstab query
    By mike02 in forum Reports
    Replies: 1
    Last Post: 07-19-2013, 12:49 PM
  2. CrossTab Query - Report Issue ?
    By AndreasPanayiotou in forum Reports
    Replies: 0
    Last Post: 09-25-2012, 01:11 AM
  3. Report From CrossTab Query
    By GSS in forum Reports
    Replies: 5
    Last Post: 02-21-2012, 05:02 PM
  4. Report using a Crosstab Query
    By Paul H in forum Reports
    Replies: 2
    Last Post: 02-09-2012, 04:35 PM
  5. Replies: 0
    Last Post: 05-09-2011, 01:51 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