Hello
In VBA I need to count records from an Offers table, that were created
beetwen 2 dates (strDate1 and strDate2).
Using the DCount as follow gives me strange results: records that were
created ON strDate1 are taken in account while records that were created
ON strDate2 are not. Records that were created before strDate2 are taken
in account.
In others words, it works fine unless that it doesn't take the = part of
the second operator.
DCount("*", "Offers", "([OfferDate] >= #" & strDate1 & "#) AND (#" &
strDate2 & "# >= [OfferDate])")
Any idea? Thanks in advance!
nectar
--
Posted via http://dbforums.com
Comment