Hi,
I am using this statement to find the amount of entries in a table within certain dates:
TotalCount = DCount("[id]", "Referral Inbox summary", "[Received] >= #" & Forms![Referral Lookup]![WeekStarting]# & " AND [Received] <= #" & Forms![Referral Lookup]![WeekEnding] & "#"
This seems to be the way to get it to work in the help file, but i don't understand why it isn't working properly. If i do the date anything before the 12/06/2002 it doens't work, the return value is 0
The format is the same througout the time it takes to filter out the information needed (taken from an inbox, so not all e-mails are needed,) it stays as a date all the way through. I have tried it with and without the "#"'s but it still doesn't work properly. Even if i Hard code the dates, it still won't work.
When it is filtering out the data, it goes through about 2 queries, would they change the format?
Thanks in advance,
Muzz
I am using this statement to find the amount of entries in a table within certain dates:
TotalCount = DCount("[id]", "Referral Inbox summary", "[Received] >= #" & Forms![Referral Lookup]![WeekStarting]# & " AND [Received] <= #" & Forms![Referral Lookup]![WeekEnding] & "#"
This seems to be the way to get it to work in the help file, but i don't understand why it isn't working properly. If i do the date anything before the 12/06/2002 it doens't work, the return value is 0
The format is the same througout the time it takes to filter out the information needed (taken from an inbox, so not all e-mails are needed,) it stays as a date all the way through. I have tried it with and without the "#"'s but it still doesn't work properly. Even if i Hard code the dates, it still won't work.
When it is filtering out the data, it goes through about 2 queries, would they change the format?
Thanks in advance,
Muzz