If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Calculating Totals on a Sub forms
I have designed an invoice which includes a datasheet sub form with 2 colums
to sum with a GRAND SUM on the main form. To avoid displaying £0.00 in every row I re-set the default value in the underlying table from 0 to blank Now I notice that the TOTAL VALUE BOX on the main form will not display a total if one of the column does not have an entry. I have to type a 0.00 value on at least one row to get it to function. Anyone know of a fix or work-around? Thanks |
#2
|
|||
|
|||
Calculating Totals on a Sub forms
Use the Nz function
Nz([SomeField],0) + Nz([SomeOtherField],0) -- _________ Sean Bailey "Brian" wrote: I have designed an invoice which includes a datasheet sub form with 2 colums to sum with a GRAND SUM on the main form. To avoid displaying £0.00 in every row I re-set the default value in the underlying table from 0 to blank Now I notice that the TOTAL VALUE BOX on the main form will not display a total if one of the column does not have an entry. I have to type a 0.00 value on at least one row to get it to function. Anyone know of a fix or work-around? Thanks |
#3
|
|||
|
|||
Calculating Totals on a Sub forms
Sean
Good knowledge Thanks a lot "Beetle" wrote: Use the Nz function Nz([SomeField],0) + Nz([SomeOtherField],0) -- _________ Sean Bailey "Brian" wrote: I have designed an invoice which includes a datasheet sub form with 2 colums to sum with a GRAND SUM on the main form. To avoid displaying £0.00 in every row I re-set the default value in the underlying table from 0 to blank Now I notice that the TOTAL VALUE BOX on the main form will not display a total if one of the column does not have an entry. I have to type a 0.00 value on at least one row to get it to function. Anyone know of a fix or work-around? Thanks |
Thread Tools | |
Display Modes | |
|
|