Microsoft
Software
Hardware
Network
Question : "Data type mismatch in criteria expression." when comparing dates
I just can't see what I am doing wrong.
I have created a new field with value of
FCDATE: DateSerial([710-3-1 Forecasts]![Year],[710-3-1
Forecasts]![Month],1)
when I execute it is displayed as "1/12/2008"
When I try to add a criteria of
ForwardDate: DateSerial(Year(Now()),Mon
th(Now()),
1)
I get the error message "Data type mismatch in criteria expression."
What gives?
Thanks
Paul
Answer : "Data type mismatch in criteria expression." when comparing dates
ok ... I just tested this syntax on a generic table and date field:
SELECT Table1.*, Table1.mydt2
FROM Table1
WHERE (((Table1.mydt2)>=DateSeria
l(Year(Now
()),Month(
Now()),1))
);
No # signs required
Random Solutions
iphlpapi on windows 2000
The "Set Value' Macro action cannot be run in disable mode. in MS Access 2007
Extract Outlook 2007 Journal Items and Attachments into Access 2007
Populate listbox with Outlook MAPI folder messages
can't drop table
Nnotes.dll API Create Empty Replica Stubs through VB.NET 2008
Automatic Update Query
Can not register DNS for new 2003 domain controller. Using infoblox appliance for dns.
Unable to add XP Clients to new MS Server 2003 Domain
Multiple Consoles in C# .Net