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  

#Error on Subform



 
 
Thread Tools Display Modes
  #1  
Old August 14th, 2006, 09:51 PM posted to microsoft.public.access.forms
phuser
external usenet poster
 
Posts: 13
Default #Error on Subform

Main Form contains Unit Information and Totals in text boxes brought down
from the Subform. The subform filters by UnitID and I am trying to calculate
total spent on repairs for this unit, I created a text box on the subform
=Sum([Parts]) and =Sum[(Labor]) and =Sum([Total]) but I still get the #Error
in all 3 columns, some of the invoices (rows) do not contain Labor or Parts
but each row has a total. What else can I try to get the calculations?


  #2  
Old August 14th, 2006, 11:32 PM posted to microsoft.public.access.forms
phuser
external usenet poster
 
Posts: 13
Default #Error on Subform

Ok maybe a little background will help, now that I've created a query to try
and total things up I see where the problem lies,
I dont know how to fix it but I sure hope I can describe it well enough so
one of you guys can help.
I took the forms from the MS template of Service Call Management Data Base.
I followed the same format, creating a seperate table for Parts Details &
another for Labor Details these tables are joined to the Workorder Table and
flow seems good, till I try to get totals when an invoice contains 1 or the
other but not both, the cell in the query for either/or is blank, this query
is the one used to make my summary screen, so I get #Errors in every column.
If the query were to produce 0's in the blank cells the numbers could then
be added up right? Tried the nz in the sum of the subform and still got the
#Error.

"phuser" wrote in message
...
Main Form contains Unit Information and Totals in text boxes brought down
from the Subform. The subform filters by UnitID and I am trying to
calculate total spent on repairs for this unit, I created a text box on
the subform =Sum([Parts]) and =Sum[(Labor]) and =Sum([Total]) but I still
get the #Error in all 3 columns, some of the invoices (rows) do not
contain Labor or Parts but each row has a total. What else can I try to
get the calculations?



 




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 07:39 AM.


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