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
Delete a Autoshape using vba
How can I log on locally to a perimeter domain machine with a user from an internal domain account?
Save Record Only On Save
GPO Server 2003 XP Pro Clients Wallpaper
Trimming
Filter one combo box based on value of another, filtered list blank issue
Question about Win7 x64 and 32-bit programs.
.NET image resizing script for blog
user authentication in visual basic 2005
How to convert this VB.NET code to VC# code?