I have a button that checks two fields in a table to see if a user has used a date in the past. The fields are UserID and Days.
The code is: DCount("[UserID]", "tblGenSum", "[UserID]= '" & Me.UserID & "' And [Days]= #" & Me.txtNewDate & "#") > 0
The purpose is so that the user never repeats...