I have a sports tracking database. I track game and practice schedules, scores, standing etc. The database has been working pretty well for a few years with the exception of the human element, which is me. For each game I have to enter the score of each team and then indicate if each team was the winner or loser, by entering a 1 or 2. Periodically I will enter the scores correctly by I will enter the results wrong by putting a 1 in place of a 2 or the other way around. This creates grief for me an frustration for those coaches that see the records as incorrect. I was wondering if I could get some help in trying to have the database calculate the winner or loser automatically.
I have a table that records the scores and game results. Each game gets two records, one for the home team and one for the visitor team. All the records are viewed on a continuous form.
The table is t_EventParticipants
The fields in the table are:
gteGteID – Key field
gteFscID – This is the ID for the Facility schedule, there one ID number per game, which would mean there two records with the same ID, one for Home one for Visitor.
gteTnaID – This is the Key field that referees to the team name
gteDesID – This is the key field that referees to the Home or Visitor designation
gtePoints – This is the field where the points are recorded.
gteResID – this is a Key field where a 1 or 2 is entered to designate winner or loser.
What I am hoping to do is to get the gteResID filed to automatically calculate but the problem is that I am comparing the scores in the gtePoints field from two records, which are the two records with the same gteFscID number one for the Home team and one for the Visitors team. If it was comparing field in the same record I think I could figure it out.
Any help you could provide would be wonderful.
Bill Singer
Minnesota
Windows 10
Microsoft 365
Groups.io Links:
You receive all messages sent to this group.
View/Reply Online (#115878) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]
Tidak ada komentar:
Posting Komentar