Results 1 to 6 of 6
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    Query Totals

    I'm trying to make a total of ammunition by caliber. There are different quantities per box, so I did calculations by multiplying boxes by amount per box. Ammunition goes in and out, so I have a field for each. I need to keep track of how much ammunition we have on hand. I made a query, but can't get it to group by caliber and make subtotals to calculate the total on hand.

  2. #2
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

  3. #3
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

  4. #4
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Here's the query
    Click image for larger version. 

Name:	Query1.jpg 
Views:	10 
Size:	95.4 KB 
ID:	24173
    Attached Thumbnails Attached Thumbnails Query1.jpg  

  5. #5
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    The reason you're having problems is your data structure.


    what's the difference between checkedout fields and issueto fields aren't they the same thing? Secondly, you're using a flatfile structure with a relational DB. You need to break it down a little.


    CustomerTable
    CustomerID
    lastname
    firstname

    AMMOTable
    AMMOID
    Caliber
    Roundsperbox

    IssuedTable
    CustomerID - Foreign key to Customertable
    AmmoId - Foreign Key to AmmoTable
    Status - yes for checked out no for checked in
    Date
    AmmoUsed

  6. #6
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    I didn't think about an issued table. I'll give it a try. Thanks.

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

Similar Threads

  1. Query detail totals vs. Summary Totals do not match?
    By aellistechsupport in forum Queries
    Replies: 9
    Last Post: 01-15-2016, 11:36 AM
  2. Similar to totals and Grand totals
    By Thompyt in forum Reports
    Replies: 14
    Last Post: 01-24-2015, 06:39 PM
  3. Unusual Sub Totals & Totals in Groups.
    By Robeen in forum Reports
    Replies: 12
    Last Post: 03-20-2012, 08:55 AM
  4. Replies: 5
    Last Post: 12-06-2011, 11:18 AM
  5. Month totals and Year totals
    By marksnwv in forum Access
    Replies: 1
    Last Post: 08-05-2011, 10:13 AM

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