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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control source in textbox problem 1

Status
Not open for further replies.

jpl458

Technical User
Sep 30, 2009
337
US
I have a text box on a form and want to display the sum the of dollar amounts for the last seven days. My last attempt looks like this:

=DSum(("[ArAmt]","[dbo_Transaction_Table]"),"
[dbo_Transaction_Table]![Date_of_Transaction] ">DateAdd("d",-7,Now()))

The first part works =DSum(("[ArAmt]","[dbo_Transaction_Table]")

But when I add the where part (The DateAdd) it don't work.

Very frustrating

Thanks in advance

jpl
 
=DSum("ArAmt","dbo_Transaction_Table","Date_of_Transaction>Date()-7")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
It worked just fine, and I can see what I was doing wrong.

Thanks for the quick response.

jpl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top