Results 1 to 4 of 4
  1. #1
    DHIGHTO is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    30

    Query Question

    Hey guys,

    So this is my problem. I'm running a query that has a field where I need two criteria show up (regular collections and special collections). Another field I have selects for the date (10/1/2014). The last field is the sum of collections. My problem is that the query is generating regular collections and special collections with each date and a sum of collections. I need the total sum of both collections for the date which would be 4.

    Thanks



    AGENCY_CODE LINE_ITEM PCA_DATE SumOfCOLLECTIONS/ACCOUNTS
    xxx Regular Collections 10/1/2014 2
    xxxx special collections 10/1/2014 2

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    In design view, change Group By to Where on the line item field and see if that does what you want.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    DHIGHTO is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    30
    Thanks. It worked. Man, I feel like an idiot.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem, and welcome to the site.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Query question
    By jscriptor09 in forum Queries
    Replies: 1
    Last Post: 03-28-2014, 06:47 PM
  2. Query question
    By T_Tronix in forum Access
    Replies: 8
    Last Post: 11-12-2013, 11:35 AM
  3. query question
    By jscriptor09 in forum Queries
    Replies: 10
    Last Post: 05-01-2013, 09:49 PM
  4. Query Question
    By anunat in forum Queries
    Replies: 5
    Last Post: 07-12-2012, 10:52 AM
  5. Sub-query question
    By hklein in forum Queries
    Replies: 1
    Last Post: 05-01-2012, 03:02 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