In this thread (http://www.vbforums.com/showthread.p...hlight=sql+sum) the following code was posted:
My question is simply this:Code:"SELECT type, SUM(amount) AS totals FROM history GROUP BY date, type HAVING date = '" & Combo1.Text & "' ORDER BY date"
Where does the "..As totals" come from? I need to do something similiar but I'm not sure about this portion of the above code. I need something like this, I think:
Code:"SELECT SUM(Payment) FROM Paydate WHERE CommonPropertyName ='" & Propertyname & "'"




Reply With Quote