Code: Select all
If DCount("*", strTable, "date1=" & Chr(34) & rst!date1& Chr(34)) > 1 Then
note:
date1 have a date short property
the code is an old code
Code: Select all
If DCount("*", strTable, "date1=" & Chr(34) & rst!date1& Chr(34)) > 1 Then
Code: Select all
If DCount("*", strTable, "date1=#" & Format(rst!date1,"yyyy-mm-dd") & "#") > 1 Then