smercer
Registered User.
- Local time
- Tomorrow, 05:04
- Joined
- Jun 14, 2004
- Messages
- 442
Hi all
I am having a small problem with a dlookup which is not looking at the date only (without the Datevalue function), but is looking at the entire field instead.
with the datevalue function it is giving errors "Data Type mismatch in criteria expression"
here is the code:
Can someone please help me? thanks in advance
I am having a small problem with a dlookup which is not looking at the date only (without the Datevalue function), but is looking at the entire field instead.
with the datevalue function it is giving errors "Data Type mismatch in criteria expression"
here is the code:
Code:
Total_Each_Book_Count = DCount("Book_Id", "tbl_Inventory_Each_Book", "DateValue(Date_Sold) = #" & Date & "#")
Can someone please help me? thanks in advance