On Thu, 20 Apr 2006 04:44:02 -0700, Shell
Comments inline.
Name (one side to the many info table) Primary Key
Name is NOT a good primary key. A PK should have three
characteristics: it should be unique, stable, and short. People's
names fail on ALL THREE counts - I know three people here in little
Parma all named Fred Brown; and people do change their names on
marriage or for other reasons. I'd suggest using an autonumber
PersonID instead.
Street
City
Zip
State
Email
I made a form with the wizard to enter info.
Info_Contestant Table
Class number (PrimaryKey (related to the class tables (the one side))
Name
Division Lookup field with Junior or Senior values
HighPoint#
C1(These are all Yes/No Depending if they entered the class)
C2
C3
C4
C5 (though all 25 classes)
Total Classes entered
I have a form that I made with the wizard to enter records.
This table is not properly normalized either. If you have a Many
(people) to Many (classes) relationship, you should NOT have one
*field* per class - that's spreadsheet logic! Instead you should have
one *record* per class. In addition, you're missing the point of the
primary key. If the Class Number here is the primary key then one and
only one person can enter that class! Not what you want at all.
Instead try:
Classes
ClassNo (e.g. 1, 2, 3)
Description (whatever is meant by C1, C2 etc.)
Signups
PersonID <link to the People table, who's in the class>
ClassNo <link to the Classes table, what class they're in>
Points <I'm guessing that an entrant earns points in each class?>
I do not know what HighPoint# might be, but if it can be calculated
(as the high score for all classes entered) then calculate it on the
fly in a Totals query; similarly, Total Classes Entered should not be
stored in ANY table field, it can be calculated as needed.
Class Tables I will have 25 tables with the naming conventions Class_1
Class_2 and so on. The will have different fields depending on the class.
The two fields that will be important are TPC (total points class) and Place.
This is similarly incorrect. Storing data in a tablename is NEVER a
good idea, and - in this case - is the source of your problems
updating.
Class_1 table
ClassNumber (foriegn back to ClassNumber in the Info table (many side))
TPC1 (Primary the one side to the High Point Table)
PlaceC1
High_Point Table
TPC1 (foriegn keys for the Class tables )
TPC2
continue for all 25 classes and class tables
TotalPoints
ClassNumber
This table should not exist. The high points can and should be
calculated on the fly.
The record source property would be what the wizard uses as a default. John
i have been looking at your other posts and I cant find anyone who is as
confused as I am! Sorry. Thank you for your time. I currently do not have a
primary Key in the HighPoint table. I had played with highPoint autoNumber
fields to use as the primary there. Should I put that back in?
No. You should normalize your entire table structure from scratch!
John W. Vinson[MVP]