views:

19

answers:

1

I'm getting this error: Data type mismatch in criteira expression when trying to execute this query in access:

select sum(total_sum) from totals_table where tot_date >= '3/01/2010' and tot_date < '4/01/2010'

P.S. tot_date is of type Date/Time and tot_sum is of type Number

+1  A: 

For access, you need BETWEEN for the dates:

WHERE Date BETWEEN #2009/12/30# AND #2010/12/30#

Also write your dates between ##.

Run CMD
Thanks, your answer helped me
Davit Siradeghyan
You do not need BETWEEN, you do need hash signs.
Remou