I am using Access 2000.
Currently, I have the following table:
tblPointsChart
PointsNum_pk
EntryCountMin
EntryCountMax
PlacementNum
Points
It is used to assign points based on:
tblShowClassEnt ry
ShowClassNum_fk
EntryNum_fk
PlacementNum_fk
and qryEntriesPerCl ass that returns the number of entries in a class.
My question is should I keep tblPointsChart as one table? tblPointsChart does not link easily with qryEntriesPerCl ass and tblShowClassEnt ry.
I have used the following code to get the results I need:
I am just not sure how to change tblPointsChart to make this work more smoothly. Any suggestions would be greatly appreciated.
Currently, I have the following table:
tblPointsChart
PointsNum_pk
EntryCountMin
EntryCountMax
PlacementNum
Points
It is used to assign points based on:
tblShowClassEnt ry
ShowClassNum_fk
EntryNum_fk
PlacementNum_fk
and qryEntriesPerCl ass that returns the number of entries in a class.
My question is should I keep tblPointsChart as one table? tblPointsChart does not link easily with qryEntriesPerCl ass and tblShowClassEnt ry.
I have used the following code to get the results I need:
Code:
SELECT tblShowClass.ShowClassNum_pk, tblShowClassEntry.EntryNum_fk, tblShowClassEntry.PlacingNum_fk, qryEntriesPerClass.CountOfEntryNum_fk, tblPointsChart.Points FROM (tblPlacement INNER JOIN (tblPointsChart INNER JOIN (qryEntriesPerClass INNER JOIN tblShowClass ON qryEntriesPerClass.ShowClassNum_fk = tblShowClass.ShowClassNum_pk) ON ( qryEntriesPerClass.CountOfEntryNum_fk between tblPointsChart.EntryCountMin and tblPointsChart.EntryCountMax)) ON tblPlacement.PlacementNum_pk = tblPointsChart.PlacementNum_fk) INNER JOIN (tblEntry INNER JOIN tblShowClassEntry ON tblEntry.EntryNum_pk = tblShowClassEntry.EntryNum_fk) ON (tblShowClass.ShowClassNum_pk = tblShowClassEntry.ShowClassNum_fk) AND (tblPlacement.PlacementNum_pk = tblShowClassEntry.PlacingNum_fk) WHERE (((qryEntriesPerClass.CountOfEntryNum_fk) Between [tblPointsChart].[EntryCountMin] And [EntryCountMax])) ORDER BY tblShowClass.ShowClassNum_pk, tblShowClassEntry.PlacingNum_fk;
I am just not sure how to change tblPointsChart to make this work more smoothly. Any suggestions would be greatly appreciated.
Comment