Exactly as you described it.
SELECT SUM(yourColumn)
FROM yourTable
WHERE yourIDField = 'some value'
If you don't know how to use variables, set up the recordset in "simple"
mode as though you're selecting the column you want to add up, add your
where conditions, etc, then go to advanced mode and simply wrap the column
name in SUM as above. The rest will stay as is.
"_Adrian" <test (AT) test (DOT) com> wrote
Quote:
ah.. ahem.. yes, but I'm afraid I don't know the exact context... I need
to
know what the context is for the WHERE clause... |