K
KRosier
Using Access 2000 with a beginner’s knowledge of VBA
I am trying to set up a database to track scores for a Horseshoe League.
(Scoring is very similar to a bowling league if that helps.) I have a
couple of questions on its design.
Currently I’m trying to decide if I need two or three tables for the
player info and stats. Here’s what I have:
tbl_player
playerID (key, autonumber)
Fname
Lname
tbl_stats
statsID (key, autonumber)
playerID (joined to tbl_player.playerID)
wk_no (week 1, week 2, week 3, etc.)
gm_date (date the games were played)
score1 (three games per series)
score2
score3
Two questions:
1) In tbl_gm_stats should I have one field for the scores and another
with the game number? There will never be more than three games per
week_no i.e.:
week 1, game 1, score; week 1, game 2, score; week 1, game 3, score
OR
week 1, score 1; week 1, score 2; week 1, score 3
2) Should I split the tbl_stats into two different tables as below
tbl_wk_stats
wk_statsId (key, autonumber)
playerID (joined to tbl_player.playerID)
wk_no
gm_date
tbl_gm_stats
gm_statsID (key, autonumber)
wk_statsID (joined to tbl_wk_stats.wk_statsID)
game_no (always 1, 2 or 3)
score
Then, once I get that set up, I’ll have three calculated fields
(handicap, high game w/handicap and high series w/handicap) that I think
I’ll need to store, which I know is generally frowned upon but I don’t
know how to do it otherwise.
Each week a handicap will need to be calculated upon all previous
scores, including the current week, and I will need a report with year
to date high game, high game w/handicap, high series and high series
w/handicap over the whole league – one high game per league, not high
game per player
The player handicap is based on the total of all previous scores and
will change from week to week. The high game and series w/handicap will
need to be able to be compared to previous week’s highs so that the
report can show the YTD high game and series (with and without handicap).
Should I be storing those calculated stats? I will want to be able to
look back over each week’s report and recalculating the stats each time
I want to see a different week doesn’t seem efficient.
Any help and ideas would be very much appreciated!
Kathy
I am trying to set up a database to track scores for a Horseshoe League.
(Scoring is very similar to a bowling league if that helps.) I have a
couple of questions on its design.
Currently I’m trying to decide if I need two or three tables for the
player info and stats. Here’s what I have:
tbl_player
playerID (key, autonumber)
Fname
Lname
tbl_stats
statsID (key, autonumber)
playerID (joined to tbl_player.playerID)
wk_no (week 1, week 2, week 3, etc.)
gm_date (date the games were played)
score1 (three games per series)
score2
score3
Two questions:
1) In tbl_gm_stats should I have one field for the scores and another
with the game number? There will never be more than three games per
week_no i.e.:
week 1, game 1, score; week 1, game 2, score; week 1, game 3, score
OR
week 1, score 1; week 1, score 2; week 1, score 3
2) Should I split the tbl_stats into two different tables as below
tbl_wk_stats
wk_statsId (key, autonumber)
playerID (joined to tbl_player.playerID)
wk_no
gm_date
tbl_gm_stats
gm_statsID (key, autonumber)
wk_statsID (joined to tbl_wk_stats.wk_statsID)
game_no (always 1, 2 or 3)
score
Then, once I get that set up, I’ll have three calculated fields
(handicap, high game w/handicap and high series w/handicap) that I think
I’ll need to store, which I know is generally frowned upon but I don’t
know how to do it otherwise.
Each week a handicap will need to be calculated upon all previous
scores, including the current week, and I will need a report with year
to date high game, high game w/handicap, high series and high series
w/handicap over the whole league – one high game per league, not high
game per player
The player handicap is based on the total of all previous scores and
will change from week to week. The high game and series w/handicap will
need to be able to be compared to previous week’s highs so that the
report can show the YTD high game and series (with and without handicap).
Should I be storing those calculated stats? I will want to be able to
look back over each week’s report and recalculating the stats each time
I want to see a different week doesn’t seem efficient.
Any help and ideas would be very much appreciated!
Kathy