Question : Using DSum and Date Parameters in a Query Together

Good morning!

I have the following query that is subtracting two fields based on date criteria.  I am getting a data type mismatch error.  Can you please advise how to correct this error.


Subtraction: DSum("[Number of Personnel Assigned] - [Number of Personnel Attended]","Query By Month","[Date of Meeting] >='4/1/2004' and [Date of Meeting] <='4/30/2004'")

Thanks is advance for your assistance!

eaglecmg

Answer : Using DSum and Date Parameters in a Query Together

Try wrapping the dates in #
#4/30/2004#

Walt
Random Solutions  
 
programming4us programming4us