Choosing a table to update in a form

Shooting Star

Registered User.
Local time
Today, 23:24
Joined
Dec 22, 2008
Messages
15
Hi,

I am making a statistics database for my Computing Coursework about a sports team. I have separate tables for different players' stats.

I would like to have a form where I can add statistics for the players. Is it possible to have a dropdown box within this form which has a list of all the player tables, and then whichever table I select from this list/dropdown box, the form adds data into that specific table?

Thanks, and sorry if this seems quite a novice question - databases aren't really my forte!
Steven
 
"I am making a statistics database for my Computing Coursework about a sports team. I have separate tables for different players' stats."

When you say this... do you mean that you have a different table for each player?
 
Yep, that's right. Sorry for any confusion!
 
Sorry to break the news to you, but your data structure is flawed and not normalized.

You should not have separate tables for different players' stats.

You need to NORMALIZE your structure. See here for more about Normalization.

Normalize.png
 
"I am making a statistics database for my Computing Coursework about a sports team. I have separate tables for different players' stats."

When you say this... do you mean that you have a different table for each player?

HEY! You beat me Ray :D
 
Okay. Should I have one central table with the stats in for every player then?
 
Okay. Should I have one central table with the stats in for every player then?

Read the article in the link and see if that helps to clarify it a bit. It isn't that you have ONE table, necessarily. It is you have the APPROPRIATE table or tables. It really depends on the data you are going to be storing and the "business process" that you are following.
 

Users who are viewing this thread

Back
Top Bottom