rudolfelizabeth
Programmer
access 2003
I am trying to get a sum between two dates input by the user, for the positive amounts in the price field .
I get a syntax error below the code
Positivesum: DSum("quantity*transactions!price","transactions"," and format([Transdate],'yyyymmdd') between format([Begindate],'yyyymmdd') and <= format([Enddate],'yyyymmdd') and Transactions!price >0")
I am trying to get a sum between two dates input by the user, for the positive amounts in the price field .
I get a syntax error below the code
Positivesum: DSum("quantity*transactions!price","transactions"," and format([Transdate],'yyyymmdd') between format([Begindate],'yyyymmdd') and <= format([Enddate],'yyyymmdd') and Transactions!price >0")