thanks anyway
Try this tutorial:
Displaying Subtotals and a Grand Total on a Form
That Displays a One-to-Many Relationship
http://www.access.qbuilt.com/html/subtotals.html
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
this what i deed as what i understand from the example
I make a textbos under the subform Form Footer
with a contro sourcer =sum([Amount])
I have this syntax in my main form
=[qryOrder subform].txtTotal
but still no result is being display
i also try doing
=[qryOrder subform].[frmOrders]!txtTotal
but still no luck
what else do I miss here???
thanks
> this what i did as what i understand from the example
> I make a textbox under the subform Form Footer
> with a control source =sum([Amount])
Open this form by itself (ie. not as a subform), in continuous view (or form
view), but not in datasheet view. Do you see a sum correctly calculated? What
I'm asking you to verify is that you see a total similar to that shown in
Figure 4 of my tutorial.
> I have this syntax in my main form
> =[qryOrder subform].txtTotal
>
> but still no result is being display
>
> i also try doing
> =[qryOrder subform].[frmOrders]!txtTotal
But neither of these forms that you tried are correct. You need something
like this:
=[NameOfSubformObject].[Form]![NameOfTextboxInSubform]
If the name of the control that holds your subform is "qryOrder subform",
then you need to use this:
=[qryOrder subform].[Form]![txtTotal]
Note: The .[Form]! part shown in the middle will never change. It has to
be exactly this, *not* the name of the form.
but the problem is how to avoid #Error when the Amount = 0??
thanks again
If so, try this:
=sum(Nz([Amount], 0))
I have a cmbName and subform frmOrdersubfrom i my main form
I have #Error result from txtAmount when no records are selected
from the cmbName...
is there a way to handle this??
thanks again
"Tom Wickerath" wrote:
Troubleshooting Tips for Error Values
http://support.microsoft.com/kb/209132
Note: Disregard the "ACC2000" in the title.