| re: HOW DO I ADD a vertical row of values in Access 2000??
In message <40295d8e$0$38116$65c69314@mercury.nildram.net>, amian
<davieshome@ntlworld.com> writes[color=blue]
>Cant find any info on how to add a simple VERTICAL column of figures in a
>single field in Microsoft Access 2000 e.g as below
>
>Item Cost.
>2
>4
>6
>8
>4
>3
>I need a total sum of these values (ie 27 at the bottom - any idea how to do
>this?[/color]
Personally I would try to get all of these values into separate records
of a table, but that might not be possible. You should be able to build
a string by concatenating text fields with the variable vbCRLF after
each new field.
outputstring = string1 & vbCRLF & string2 & vbCRLF
You need to handle the arithmetic separately. The precise structure of
the code will depend on whether the fields are numeric or text.
--
Bernard Peek
London, UK. DBA, Manager, Trainer & Author. Will work for money. |