Results 1 to 7 of 7
  1. #1
    Stacy is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    4

    Simple? Query Question

    What query would I use to count the help desk tickets closed and opened if the data is setup like this?



    DateOpened Ticket Name Date Closed
    1/1/10 123 Jill Jones 1/2/10
    1/1/10 124 Jill Jones 1/2/10
    1/1/10 125 Jill Jones 1/3/10
    1/2/10 321 Bob Green 1/3/10

    Desired Result
    Date Name DateOpened DateClosed
    1/1/10 Jill Jones 3 0
    1/2/10 Jill Jones 0 2
    1/2/10 Bob Green 1 0
    1/3/10 Jill Jones 0 1
    1/2/10 Bob Green 0 1

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    select date, name, count(dateopened), count(dateclosed)

    from table

    group by date, name

  3. #3
    Stacy is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    4

    Which date?

    You said select date, but which date or both dates?

    select date, name, count(dateopened), count(dateclosed)

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    sorry. I guess I read that wrong. It's more complex...

    I apologize Stacy, now that I read it, nothing comes to mind right now. You're welcome to upload your file and someone can take a look when they get time. I'm sure I can figure out how, but I can't at this moment. Doing other things.

    Sorry...usually I can do it off the top of my head. But not today apparently!

  5. #5
    Stacy is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    4

    Data Attached

    I've attached a text file, so you can see the data I'm dealing with. Thanks.

  6. #6
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    that doesn't help Stacy. That's the same as reading your first post.

    Upload the file.

  7. #7
    Stacy is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    4

    Database attached

    I'm stumped, so any help is appreciated.

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

Similar Threads

  1. Simple VBA Question
    By koper in forum Access
    Replies: 1
    Last Post: 01-20-2011, 12:07 PM
  2. Simple query Question, please Help
    By iamraja5 in forum Forms
    Replies: 1
    Last Post: 03-16-2010, 05:04 AM
  3. Simple question
    By KenM in forum Queries
    Replies: 1
    Last Post: 11-10-2009, 03:32 PM
  4. Simple question?
    By roads.zx in forum Access
    Replies: 0
    Last Post: 10-15-2009, 04:56 PM
  5. Should be simple Query Question
    By brj1 in forum Queries
    Replies: 2
    Last Post: 03-04-2006, 01:11 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