Results 1 to 2 of 2
  1. #1
    oakhoplite is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2018
    Posts
    9

    Question Calculated field in a table based on values from another table

    Hi! I am new to working in access and I would like to create a calculated field in a table based on values from another table. I have a table that shows the performance of a skater (the skaterID, the moveID and the score-which is the number of points obtained on that move). The table looks like this:

    SkaterID MoveID Score
    1 8 8
    1 9 12
    2 5 4
    2 1 13



    And I would like to create a table that contains the SkaterID and the TotalScore (which is the sum of the scores for a specific skater). So for each skater, I need to calculate the total score and the table would look like this:

    SkaterID TotalScore
    1 20
    2 17

    The TotalScore is the calculated field, however, I do not know what I should write as its formula in order to obtain those results. Help would be greatly appreaciated!

  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
    I don't think a calculated field can use values from another table, but a simple totals query will give you that result.

    SELECT SkaterID, Sum(Score) As TotalScore
    FROM TableName
    GROUP BY SkaterID
    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. Replies: 1
    Last Post: 05-22-2017, 05:59 AM
  2. Calculated field in web table with null values
    By Bryan Daniels in forum Access
    Replies: 13
    Last Post: 07-08-2016, 03:22 PM
  3. Replies: 10
    Last Post: 06-10-2015, 08:16 AM
  4. Replies: 1
    Last Post: 01-31-2015, 11:07 AM
  5. Replies: 1
    Last Post: 03-17-2014, 02:13 AM

Tags for this Thread

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