Thanks!
That last suggestion was the solution. It seems that the date that I was using was not being interpreted correctly, so no records matched, and no sum was being calculated. However, the query would respond with 1 record - a blank one.
Your code helped to clear that up.
Thanks again