Results 1 to 5 of 5
  1. #1
    kkyork is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    May 2012
    Posts
    7

    Combining Results of Cross Tab Queries

    I have two cross tab queries which I am trying to combine into a logical format.

    In the first, I have two row headings - employees & type of hours (billable/non-billable). My column headings are the months. The results are the sum of each hour type for the employees.

    In the second, I have one row heading, employees. My column heading are the months. The results are the sum of the available employee hours.

    I'd ideally like to have the second crosstab query results, end up as another row heading in crosstab 1 - i.e. employees & type of hours (billable/non-billable/available).



    Any idea how I can accomplish this? I've tried a couple of different approaches without any luck.

    Thanks in advance!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You tried a query that joined the two crosstabs? The total hours should repeat for each of the hour type codes.
    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.

  3. #3
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Was wondering if we could try to get the results in a query first & then convert that in to a cross-tab query
    instead of
    combining 2 cross-tab queries ?

    Thanks

  4. #4
    kkyork is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    May 2012
    Posts
    7
    I tried combining the two but always end up with something that looks like this:

    HourType HourType Jan.Utilize Jan.Available Feb.Utilize Feb.Available
    Employee 1 Billable Available 80 100 70 150
    Employee 1 Non-Billable Available 20 100 80 150

    Whereas I desire to have it look more like this:

    HourType Jan.Utilize Feb.Utilize
    Employee 1 Billable 80 70
    Employee 1 Non-Billable 20 80
    Employee 1 Available 100 150

    I have not tried just querying both sets of data and then doing one cross tab. Had really only attempted joining the two.

  5. #5
    kkyork is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    May 2012
    Posts
    7
    Used a union query to combine the data into one table and now ran a cross tab query on that! Works perfectly. Thanks for the pointer!

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

Similar Threads

  1. Combining results from unrelated tables
    By jwreding in forum Queries
    Replies: 7
    Last Post: 08-12-2011, 01:19 PM
  2. Combining queries
    By wildlifeaccess in forum Queries
    Replies: 10
    Last Post: 09-20-2010, 07:35 AM
  3. Cross Tab Queries
    By Nixx1401 in forum Access
    Replies: 6
    Last Post: 02-16-2010, 11:55 AM
  4. Combining Two Queries
    By csolomon in forum Queries
    Replies: 1
    Last Post: 09-03-2009, 01:33 PM
  5. Combining results
    By LANCE in forum Queries
    Replies: 0
    Last Post: 06-11-2009, 07:38 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