You just need a variable in your for loop no? sum = 0
for row in records: sum += accounts.amt print amt, sum -Thadeus On Mon, Dec 7, 2009 at 7:22 PM, villas <villa...@gmail.com> wrote: > Yes, it was just a thought. > Now we have a decimal field I'm trying out some accounting ideas. > Thanks. > > -- > > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegroups.com. > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.