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
Select rows in one table that are not in another table.
Windows Media player wont play Netflix online movies
How to copy section of each field from Colm 1 to Colm 2 in excel
How can I change the identity property of a column without setting the wrong seed?
How to refresh the view in an SDI application
Start up page in VS 2008 using ASP.NET
Turning of autocorrect in runtime (Acc 97)
Creating new alphanumeric primary key in existing tables.
MS Access 2007
How to add totals to a row in a sql 2008 pivot stored procedure