A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculating Totals on a Sub forms



 
 
Thread Tools Display Modes
  #1  
Old August 29th, 2008, 09:32 PM posted to microsoft.public.access.forms
Brian
external usenet poster
 
Posts: 1,396
Default 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  
Old August 29th, 2008, 10:41 PM posted to microsoft.public.access.forms
Beetle
external usenet poster
 
Posts: 1,254
Default 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  
Old August 29th, 2008, 11:03 PM posted to microsoft.public.access.forms
Brian
external usenet poster
 
Posts: 1,396
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.