Hi,
Well.. You could have Normalized further, with Just One Master for both Pool Team and NHL Team.. :
NPTeam (TeamID, TeamName, TeamType)
TeamType >> N or P
Your PlayerStats will be :
PlayerStats (PlayerID, TeamID, Points)
Anyway, Populate the other team by opening this Query :
Say, Column 1 , displays the Pool Team Name, then to get list of players :
The Query is for PoolTeam:
Dim sSQL As String
sSQl = "Select P.PlayerName, Sum(PS.Points) From " _
& " PlayerStats PS, Player P, PoolTeam PT Where " _
& " PS.PlayerID = P.PlayerID And " _
& " PS.PoolTeamID = PT.PoolTeamID And " _
& " PT.PoolTeamName='" & Grd.TextMatrix(Grd.Row, 1) & "'" _
& " Group By P.PlayerName "
Write the code to populate in either Click event of the Grid/ or place a command button and write in its Click event..
Regards
Veena