having the Dcount ...but can't get it to work
Me.txtTeamNo = Nz(DCount("[AttType]", "Attend", "([AttType]=1) And (TeamLookUp ='" & Me.lstGroup.Column(1) & "') "), 0)
txtTeam is a field on my form
and I'd like to count AttType that's equal to 1 and to make sure that a the Lookup "TeamLookUp" is equal to the lstbox "lstGroup"
Hope u guys can help
Me.txtTeamNo = Nz(DCount("[AttType]", "Attend", "([AttType]=1) And (TeamLookUp ='" & Me.lstGroup.Column(1) & "') "), 0)
txtTeam is a field on my form
and I'd like to count AttType that's equal to 1 and to make sure that a the Lookup "TeamLookUp" is equal to the lstbox "lstGroup"
Hope u guys can help