Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Runing DSum in Report

Status
Not open for further replies.

Lavenderchan

Technical User
Jul 21, 2008
132
US
Hi I was wondering if some one could help me with a problem I'm having with a dsum. I found a really nice example of retiving totals using dsum posted by rsmith but for some reason I cannot get it to work. I am creating a report for my office car usage for the year. I have it split up into quaters. I have put the dsum on the report

=DSum("[Total Costs]","tblMileage Costs","[Car Tag Number] = 1234 [Begin date] between #1/1/2008# and #3/31/2008#")

I have tried it with "1234" and '1234'. At first I was getting nothing now I'm gettin an #error in the field.
Thank your for looking at this.

Keri
 
=DSum("[Total Costs]","tblMileage Costs","[Car Tag Number] = 1234 and [Begin date] between #1/1/2008# and #3/31/2008#")
 
Thank you very much for you response. I'm still getting an error message. Do you know what might cause that
Thanks,
Keri
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top