View Single Post
  #3  
Old January 13th, 2010, 08:57 PM posted to microsoft.public.access.tablesdbdesign
buggirl
external usenet poster
 
Posts: 52
Default linking tables for maximum efficiency

Thanks for your reply!

You know, I'm not too worried about adding a fifth analysis. I may not have
explained the data clearly enough. All of the analyses are conducted
simultaneously and so all of the results come together, as a set. If I did
another analysis, it would be conducted on different fish (as the current one
destroys the fish), so I would have to construct a separate table. (Otherwise
I would have a bunch of blank cells.) Does this make sense? And, if that's
the case, am I doing the right thing?!

Sorry, I don't know Widlack! I'm primarily a bug ecologist, and I'm just
learning about fish!

Thanks again!

"Jerry Whittle" wrote:

This part will cause you grief:

Analysis1
Analysis2
Analysis3
Analysis4

What happens when someone decides to add a 5th Analysis? All your forms,
reports, and queried based on this table will need to be modified.

You need this table to be different and add another table.

tbl FishAnalysis:
FishAnalysisPK (every table needs a PK even if just an autonumber)
FishPK FK to Fish
AnalysisPK (FK to the Analysis table!)
ChemoResult

tbl Analysis
AnalysisPK
AnalysisName
AnalysisNotes

This way you can add more chemical analysis in the future. Queries will be
much simpler to although you'll need to join in an extra table and remember
to do things like left or right joins to see all results.

BTW: An old buddy of mine, Jim Widlak, does work in a field like your
database suggests in Tennessee. A very tall guy and about 58 years old. Know
him?
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.