Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2021
    Posts
    2

    How can I calculate(update) a soccer league table in access 2019?

    I want to learn how to solve this request, in a microsoft access 2019 database:
    "The classification field will be filled in according to the following reasoning: all the points obtained by a team are added and depending on the reverse order of the ranking, the field place_classification is also updated!"
    I don't know how to calculate the request:
    for example: If Real Madrid has 100 points then results in the field place_classification = 1st place;
    If Barcelona has 99 points then results in the field place_classification = 2nd place....
    and just like that for the rest of the teams
    created by me from my database leaderboard.
    If anyone could help me with a hint or a solution I will appreciate it.
    Thank You.



  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    one way is to have a 'report' table that has an autonum field PLACE.
    sort your data on POINTS field then append the data to this report table
    since the highest points get added 1st then the autonum will assign 1 .
    then next will get 2, and so on.

    Note: this works the 1st time only
    so if you need to erase the data and re-use this report table ,you must reset the autonum to 1 by empting the data, then compact the db.
    otherwise erasing the data and adding more data will just continue to add to the autonum where it left off, Not 1.

  4. #4
    Join Date
    Apr 2021
    Posts
    2
    Thank you for the help, I will try this and I'll return with a response.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,925
    I would have thought you would just add records with the points for each team.?

    Then run a query to sum the points and display in descending order of the sum of points?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2021, 09:14 AM
  2. Access 2019 Desktop version
    By mainerain in forum Access
    Replies: 3
    Last Post: 08-26-2020, 12:06 PM
  3. Replies: 3
    Last Post: 01-24-2020, 08:27 AM
  4. Update or CancelUpdate without AddNew or Edit -- 2019
    By bw.brandiwoodson in forum Forms
    Replies: 10
    Last Post: 12-06-2019, 01:44 PM
  5. MS Access 2019 aesthetics
    By shank in forum Access
    Replies: 1
    Last Post: 10-17-2019, 04:04 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