Sum Trouble

H

helpmeplease

I want to sum only data in my report that falls between the form
dates...everytime I try to "Sum" , it says it's too complex. Do you see a
better way?

The goal of the report is to show ALL mandatory trainings (no matter the
date) and all other trainings that took place with in the form start and end
dates. I need it to show the total hours earned within the form dates as
well.

My IIf statement shows correctly under the detail section but I cannot get
the total in the employee footer.

IIf(Eval([Completed] Between [Forms]![frmDateSelect]![Start] And
[Forms]![frmDateSelect]![End]),[hours],0)
 
J

John Spencer

I would try a control with the following expression as its source.

=SUM(IIF([Completed] Between [Forms]![frmDateSelect]![Start] And
[Forms]![frmDateSelect]![End]),[hours],0))

I don't understand why you are using the EVAL function at all.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

IIf - Sum Problem 1
Too Complex Sum 2
Sum Trouble 3
totals based on specific data 5
Multi table query 1
criteria applies to a range of dates. 3
Access Sub form opens before the main form in MS Access 0
Combo Box help (repost) 2

Top