sdhruv
06-04-2015, 10:45 PM
I am trying to find the number of holidays in a table called tblholidays primary key field is HolidayDate and the dates are Start Date and Text8. I used the following code but it gives the error Compile error: Invalid character.
code:
Dcount("*", "tblHolidays", _ "HolidayDate Between " & _ Format$(StartDate, "\#dd\/mm\/yyyy\#") & _ "And" & _ Format$(Text8, "\#dd\/mm\/yyyy\#"))
code:
Dcount("*", "tblHolidays", _ "HolidayDate Between " & _ Format$(StartDate, "\#dd\/mm\/yyyy\#") & _ "And" & _ Format$(Text8, "\#dd\/mm\/yyyy\#"))