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
Password protect adobe 9
MS Word multiple sheets
How do I convert a null value to a blank space?
Visual Studio 2008, Listbox location on picturebox insdie a form
HTC P3400 - Synchronization Problem with HP Laptop - Windows Vista Home Premium
How to read field names from an XSD file.
ReportViewer Export to PDF Loses Tabs or Multiple Blnak Spaces
Error:Cannot open database". It may not be a database that your application recognizes, or the file may be corrupt.
Internet Explorer has stopped working
Can Paypal Standard Checkout be integrated with a MS Publisher created web site?