DCount conta il numero di partecipanti che soddisfano un filtro (primo parametro):
DCount("[Arrivati]") - restituisce il numero di arrivati
DCount("T101>0 AND [Gara]=1") - restituisce il numero di partecipanti registrati nella gara 1, che hanno un risultato nel Risultato 101
Se il filtro contiene un valore testo, hai la necessitá di uscire dalle virgolette con più virgolette. Esempi:
DCount("[Genere]=""f""") - Restituisce il numero di partecipanti di genere femminile
DCount("[Genere]=""" & [Genere] & """") - Restituisce il numero di partecipanti dello stesso sesso del partecipante considerato.
Si noti che le funzioni di aggregazione non sono molto veloci e dovrebbero essere utilizzate raramente.
DCount(;true)
DCount(;true) counts both the number of participants in an eventfile AND participants that are in the process of a registration currently, fulfilling a fiter
DCount("[Gender]=""" & [Gender] & """";true)
Returns the number of participants already registered and those who are in the process of the registration who are of the same gender as the considered participant.
Example:
- 5 female participants already existing in the eventfile
- 4 female participants not yet registered, but in the process of registering
- ==> 9 participants in total.