farmkid wrote:
Here's a screenshot of my form. You can see the 6 subforms. What I want is a box at the bottom of or below each subform with the total of the numbers in the second column of that subform.
I know you asked for a Running Sum, Farmkid, (which is what you get in a bank statement, where each total refers to the line the above), but this sounds as if all you want is a single total of the second column of each subform.
You don't get Calculated fields like you do in Access, but Base is much nicer about subforms
based on other subforms, so what you'd actually do is a one row/one visible column Subsubform linked to each subform, as eremmel suggested.
So to expand on his answer, since you say you are new to this (I don't know how your database is structured so my instructions will need to be adapted to suit):
Create a query which contains the 2nd column and a field which links it to the subform
eg if all the fields in subformA referred to MyClass1 and there was a field called MyClass in the table
which had a 1 in it, then put the MyClass field and the Number field in your query.
Under the Number field in the Functions row, choose Sum. Under the MyClass field choose Group By.
You should now have only one row in your query and 2 cells.
In Form Design, click the Form Navigator button, right click on your subform there and choose New Form.
Give the new form a name you'll recognise.
Base it on your query ie right click on it and go to Properties
Choose Query next to Content Type. Choose your Totals query
Next to Link Master and Link Slave choose the MyClass field.
Click the More Controls button and drag a Table control onto your form. In Form Navigator, drag this Table Control onto your new Subsubform.
Click the Add Fields button and drag the Sum field into your subsub form. In Properties, take off the navigation bar.
If you have a look at my 'Work In Progress' database, here,
http://user.services.openoffice.org/en/ ... 42&t=24906, in FrmOrders you will see this in practice.
If your database is well structured, you will be able to use the same query for all your Subsubforms: if each subform is based on a different table (naughty you!) then you'll need a seperate query for each subform.