Start with these tables:
TblGolfer
GolferID
FirstName
LastName
IsFemaleOrJunior (Yes/No)
Handicap
TblHole
Hole
Par
TblScore
ScoreID
GolferID
ScoreDate
TblScoreByHole
ScoreByHoleID
ScoreID
Hole
Score
HoleHandicap
TblGolfer and TblHole are self-explanatory. Note that a golfer's handicap is
recorded in TblGolfer.
To begin describing how this works, you did not describe how handicap is
calculated if a golfer hasn't played three rounds. So, you need to figure
out how to compute a golfer's initial handicap and then enter that into the
Handicap field in TblGolfer.
You need a form/subform/subform for entering rounds of golf. The main form
is based on TblGolfer so enable you to go to any golfer. You need a subform
to the main form based on TblScore. You then need a subform in this subform
based on TblScoreByHole. When you are entering a round and recording the
scores on each hole in the subform based on TblScoreByHole, you need some
VBA code records the difference between the score and par if it is less than
2 or records a 2 if it is equal to or greater than 2. The handicap for a
round can be calculated at any time by summing the HoleHandicap for the
round so you do not need to record the handicap for the round.
After you have entered a round, you need a procedure for updating the
golfer's round. The procedure would first check to see if the golfer has
played three rounds including the current round and if he has, the procedure
would average the handicaps of the current round and the two previous rounds
and update the golfer's Handicap in TblGolfer. In this procedure you would
account for the max handicap for a woman or junior to be 36 and just 28 for
a man.
There are some questions you need to consider such as what do you do about
partial rounds, do you allow a bad round to raise a golfer's handicap and do
you count the rounds in the previous seaon when computing the handicap at
the beginning of a new season.
I am sure this is very overwhelming!!! If you want help setting this all up,
I can help you for a very reasonable fee.
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
[email protected]