DSum Problem

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I think it's the Syntax but it's not returning a value. It might be the
DATE part. Any help appreciated.
Thanks
DS


Me.TxtDrops = Nz(DSum("DropAmount", "tblDrops", "DropEmpID = " &
Me.TxtDriverID & " And DropDate = Date"), 0)
 
Me.TxtDrops = Nz(DSum("DropAmount", "tblDrops", "DropEmpID = " &
Me.TxtDriverID & " And DropDate = '" & Date & "'"), 0)

Hope that helps!
 
Jeff said:
Me.TxtDrops = Nz(DSum("DropAmount", "tblDrops", "DropEmpID = " &
Me.TxtDriverID & " And DropDate = '" & Date & "'"), 0)

Hope that helps!
Thanks it did help, this actually worked.

DS
Me.TxtDrops = Nz(DSum("DropAmount", "tblDrops", "DropEmpID = " &
Me.TxtDriverID & " And DropDate = #" & Date & "#"), 0)
 

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 Problem 2
DSum Syntax 3
DSum Problem 4
Error on Empty Table 3
DSum Problem 2
DSum Wrong Argument 2
DSUM Not Working 5
DSum w/Between = Invalid use of Null 12

Back
Top