Results 1 to 3 of 3
  1. #1
    Darko1234 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    2

    Post Need help


    So i'm new to ACCESS and have to do football league and i have a problem with Leage standings.

    Code:
    SELECT Tekma.Domači AS IDEkipe, IIf(Tekma!Ekipa1>Tekma!Ekipa2,3,IIf(Tekma!Ekipa1=Tekma!Ekipa2,1,0)) AS Točke, Tekma.Ekipa1 AS Dosezeni, Tekma.Ekipa2 AS Prejeti, Tekma.Krog
    FROM Tekma
    UNION SELECT Tekma.Gost AS IDEkipe , IIf(Tekma!Ekipa1<Tekma!Ekipa2,3,IIf(Tekma!Ekipa1=Tekma!Ekipa2,1,0)) AS Točke, Tekma.Ekipa2 AS Dosezeni, Tekma.Ekipa1 AS Prejeti, Tekma.Krog
    FROM Tekma;
    So i want to sum points for each team, but the program does it like in the picture i will attach below.
    After every game points do not add up, instead same team is created and points are given to that team.

    Click image for larger version. 

Name:	111.JPG 
Views:	12 
Size:	59.9 KB 
ID:	37920
    Did i do soemthing worng?

  2. #2
    Darko1234 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    2
    Solved it myself

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Thanks for updating the thread and welcome to the site by the way!

    Posting your solution could help someone else.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

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