Problem: Total Price at Form Footer

cheer

Registered User.
Local time
Tomorrow, 02:44
Joined
Oct 30, 2009
Messages
222
Anyone can suggest this ?

Total Price text box appear at Form footer with Control Source : =sum(cdbl(txtSubPrice))
 

Attachments

  • RFQ.jpg
    RFQ.jpg
    114.8 KB · Views: 187
What happens if you just use...

=Sum(txtSubPrice)
 
Put a textbox in the footer of your subform with this in the control source.
Code:
=nz(Sum([txtSubPrice]))


Name it something usefull like txtSubtotalPrice

add a textbox on the main form and put this in the control source

Code:
=[txtSubtotalPrice]

 
Last edited:
Does every field you are summing on have a 0 (zero) or some other figure? What is the Control Source of the the field you are summing on?
 
Put a textbox in the footer of your subform with this in the control source.
Code:
=nz(Sum([txtSubPrice]))
Name it something usefull like txtSubtotalPrice

add a textbox on the main form and put this in the control source

Code:
=[txtSubtotalPrice]


Same error. Could the problem raise up bcos of the unbound textbox?
 
Last edited:
Does every field you are summing on have a 0 (zero) or some other figure? What is the Control Source of the the field you are summing on?

Base on the attachment above , all fields with numeric value . Could the problem raise up bcos of the unbound textbox? If i still want to use the unbound text box, how to proceed ?
 
Last edited:
Cheer,

Are you saying the boxes you are totaling on are UNBOUND?
 
Cheer,

Are you saying the boxes you are totaling on are UNBOUND?

Yes. Any way not to use bound but still can show the correct sum?
I don't plan to keep the total inside the table .
 
Last edited:
The sum field (result) should not be a bound box but the field you are summing should get it's data from one of the form's row source fields.

is txtSubtotalPrice is the name of the field on the form or the name of a field of data in the row source ?
 
As mentioned... you cannot SUM on UNBOUND text boxes, they must have a ControlSource. So, not matter what we do here that will never work.

Where is the data for those UNBOUND boxes, in other words, what do they do?
 

Users who are viewing this thread

Back
Top Bottom