Results 1 to 4 of 4
  1. #1
    chleng is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    11

    How to get the total of certain fields in Access Query?

    Hi all.

    I got a table here that I need to get the total of certain fields based on certain criteria:

    Table 1
    Species TRNo Grade Strip L M3
    A QZ19 N 2S 730 0.17
    A QZ20 N 1S 730 0.11
    A QZ20 N 1S 900 0.09
    M QA40 R 2S 1300 1.29
    M QA40 N 2S 1100 0.29
    M QA40 N 2S 1100 0.29
    M QA40 N 1S 1000 0.35
    M QA40 N 1S 1000 0.55
    M QA40 R 1S 900 0.76


    The result that I wish to get is:
    TRNO Strip
    QA40 1S 2S
    N R R N
    0.85 0.76 1.29 0.58

    How to get the above result in Access Query?

    Thanks,


    Xavier

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Have you tried
    an aggregate select query
    with
    Grouping On
    TRNO, Strip and Grade
    And
    Sum On
    M3.

    Thanks

  3. #3
    chleng is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    11
    Quote Originally Posted by recyan View Post
    Have you tried
    an aggregate select query
    with
    Grouping On
    TRNO, Strip and Grade
    And
    Sum On
    M3.

    Thanks
    Thanks, recyan.

    I manage to work it out already

  4. #4
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662

    Thanks

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

Similar Threads

  1. Calculating the Total of Average Fields
    By DDEB in forum Queries
    Replies: 1
    Last Post: 05-09-2012, 06:26 PM
  2. Replies: 12
    Last Post: 05-07-2012, 12:41 PM
  3. running or sub total using sql query in access
    By learning_graccess in forum Access
    Replies: 4
    Last Post: 10-15-2011, 05:40 AM
  4. Divide two Fields, Total in another field
    By prawln in forum Access
    Replies: 1
    Last Post: 03-28-2011, 06:45 PM
  5. total many fields by function
    By thetuyen in forum Access
    Replies: 2
    Last Post: 03-08-2010, 08:43 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