jzwp11
Thanks for attaching the A2003 version. May be it's something to do with my region, but I only works for me if the date criteria is formatted:Code:If DCount("*", "tblAppointments", "AppointmentDate=#" & Format(Me.AppointmentDate, "mm/dd/yyyy") & "# AND ApptTimeID=" & Me.lstTimes) > 0 Then MsgBox "The appointment time for the indicated date has already been reserved" Cancel = True End If