To add quantities of a column?

When I give clic in a action button Since I can add the quantities of the columns of a database1 and sends to another form of to another database2

Example

Name Quantities

Antony Morris 120

Antony Morris 100

Antony Morris 110

Willian Kumar 80

Willian Kumar 80

Paul Smart 70

The result is in another view and another database

Antony Morris 330

Willian Kumar 160

Paul Smart 70

Thank you for his(her,your) help

Subject: RE: To add quantities of a column?

You could do this with a little LotusScript to scan the view and calculate the totals. Look at the NotesView, NotesViewEntryCollection classes, and GetDocumentByKey method (to find the document in database 2 that needs updating).