ukbusiness
asked on
Combo Box for golf tournament database
I am running a golf tournament and have set up a database all components are working well. However I would like to add a little enhancement. We have 36 teams with 4 players on each team. Starting Hole table runs a cboStartingHole with a field showing 1A, 1B, 2A, 2B, etc.. When 1 have assigned 4 players (1 team) to a hole I would like that specific hole to not show in the cbo, to prevent accidentally assigning a 5th player (or worse an entire other team)
you can use
Select Hole From tblHoles where tblHoles.Players < 4
Select Hole From tblHoles where tblHoles.Players < 4
ASKER
SELECT DISTINCTROW tblStartingHole.* FROM tblStartingHole ORDER BY [tblStartingHole].[Startin gHole];
Try this;
SELECT DISTINCTROW tblStartingHole.* FROM tblStartingHole
WHERE ([tblStartingHole].[Player sField] < 4)
ORDER BY [tblStartingHole].[Startin gHole];
SELECT DISTINCTROW tblStartingHole.* FROM tblStartingHole
WHERE ([tblStartingHole].[Player
ORDER BY [tblStartingHole].[Startin
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
what is the sql behind your combo box?