G
Guest
Hi All
I am trying to display in my combo box only those bowlers that belong to a
said team and not display all the bowlers in the whole system.
I have one main form and am using a subform to display the bowlers assigned
to a specific team from another subform.
I have two tables and the record source for my subform is:
tblBowlerScores
- BowlerResultID
- BowlerID
- Game1
- Game2
- Game3
- MatchID
- ScheduleID
- TeamID
- HCP
- Blind
- Series
The table for storing the bowlers is
tblBowler
- BowlerID
- FirstName
- LastName
- LeagueID
- TeamID
- Sub
The SQL that was created is:
SELECT tblBowlers.FirstName, tblBowlers.LastName, tblBowlers.TeamID,
tblBowlers.LeagueID
FROM tblBowlers INNER JOIN tblBowlerScores ON tblBowlers.BowlerID =
tblBowlerScores.BowlerID
WHERE (((tblBowlers.BowlerID)=[tblBowlerScores].[BowlerID]))
GROUP BY tblBowlers.FirstName, tblBowlers.LastName, tblBowlers.TeamID,
tblBowlers.LeagueID
ORDER BY tblBowlers.LastName;
but this just shows all of the bowlers in the system!
Please can someone help me or advise me?
Kind Regards
Peter
I am trying to display in my combo box only those bowlers that belong to a
said team and not display all the bowlers in the whole system.
I have one main form and am using a subform to display the bowlers assigned
to a specific team from another subform.
I have two tables and the record source for my subform is:
tblBowlerScores
- BowlerResultID
- BowlerID
- Game1
- Game2
- Game3
- MatchID
- ScheduleID
- TeamID
- HCP
- Blind
- Series
The table for storing the bowlers is
tblBowler
- BowlerID
- FirstName
- LastName
- LeagueID
- TeamID
- Sub
The SQL that was created is:
SELECT tblBowlers.FirstName, tblBowlers.LastName, tblBowlers.TeamID,
tblBowlers.LeagueID
FROM tblBowlers INNER JOIN tblBowlerScores ON tblBowlers.BowlerID =
tblBowlerScores.BowlerID
WHERE (((tblBowlers.BowlerID)=[tblBowlerScores].[BowlerID]))
GROUP BY tblBowlers.FirstName, tblBowlers.LastName, tblBowlers.TeamID,
tblBowlers.LeagueID
ORDER BY tblBowlers.LastName;
but this just shows all of the bowlers in the system!
Please can someone help me or advise me?
Kind Regards
Peter