Need Help with DSUM syntax

G

Guest

Sorry to create a new thread on this but I tried putting it on the old one
and it didn't work.

You did so well on my other DSUM problem that one I wondered if I could get
your help again on a variation of that same Dsum statement. The last one
(shown below) totalled records between a range of dates. For this one I need
to total all records less than or equal to the ENDING date [Enter Ending
Date] field.

Here's the syntax I wrote, but it brings back ZERO each time. Is there
something wrong with it?

=Format(Nz(DSum("dailyHours","attendance_clock_in","studentid=" &
[employeeid] & " And [date]<= " & [Enter the Ending Date
(mm/dd/yyyy)]),0),"Fixed")



Duane Hookom said:
Nz(
DSum("dailyHours","attendance_clock_in",
"studentid=" & [employeeid] &
" And [date] Between #" & [Enter the Beginning Date] &
"# And #" & [Enter the Ending Date ] & "#"),0),"Fixed")
 
D

Duane Hookom

Reply in your other post.

--
Duane Hookom
MS Access MVP


Stonewall said:
Sorry to create a new thread on this but I tried putting it on the old one
and it didn't work.

You did so well on my other DSUM problem that one I wondered if I could
get
your help again on a variation of that same Dsum statement. The last one
(shown below) totalled records between a range of dates. For this one I
need
to total all records less than or equal to the ENDING date [Enter Ending
Date] field.

Here's the syntax I wrote, but it brings back ZERO each time. Is there
something wrong with it?

=Format(Nz(DSum("dailyHours","attendance_clock_in","studentid=" &
[employeeid] & " And [date]<= " & [Enter the Ending Date
(mm/dd/yyyy)]),0),"Fixed")



Duane Hookom said:
Nz(
DSum("dailyHours","attendance_clock_in",
"studentid=" & [employeeid] &
" And [date] Between #" & [Enter the Beginning Date] &
"# And #" & [Enter the Ending Date ] & "#"),0),"Fixed")
 

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

Dsum Syntax Help 4
Dsum Syntax Problem 1
Syntax 2
Need help with FORMAT syntax 3
DSUM Baffle 2
DSum on a report 5
=DSUM negates criteria in query 2
Parameter Query with DSum 1

Top