Results 1 to 2 of 2
  1. #1
    cvansickle is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Location
    Las Vegas, NV
    Posts
    21

    Quick Query Help

    Hello and Sorry to bother..



    I think this is an easy solution, but I am very much a newbie and have 'brain freezes' alot

    I have a payroll database with a number of employees in it.

    The Data has the employee listed on separate rows for each JobCode.

    Example:

    John Doe Hours 8
    John Doe OT Hours 2
    John Hoe Vacation Hours 6

    I need to do a query that shows John Doe on a single row with the Hours (Column 3) , OT Hours (Column 4), Vacation Hours (Column 5), Total Hours (Column 6)

    In my head it seems easy enough.. But like I mentioned - Brain Freeze

    Thanks for the HELP


    Chad

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    investigate using a crosstab query

    row header - group by employee name
    row header - sum the hours column for total hours
    column header - group by name of your hours column
    value - sum the hours column (again)


    note the row headers will appear in the first columns - so your total will be column 2

    this should not matter because you can correct this in your form or report layout

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

Similar Threads

  1. Quick Question about a Query result
    By cbende2 in forum Access
    Replies: 7
    Last Post: 12-15-2014, 05:30 PM
  2. Hi all, a quick query...
    By Desmondo in forum Queries
    Replies: 5
    Last Post: 03-27-2012, 12:22 PM
  3. Quick Return Query
    By worldwidewall in forum Access
    Replies: 2
    Last Post: 03-07-2012, 07:04 PM
  4. Quick SQL Query question.
    By Suoipoc in forum Access
    Replies: 4
    Last Post: 09-06-2011, 09:10 PM
  5. quick query syntax questions
    By cowboy in forum Access
    Replies: 6
    Last Post: 02-03-2010, 06:10 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