C cheer Registered User. Local time Tomorrow, 00:57 Joined Oct 30, 2009 Messages 222 Aug 3, 2011 #1 Anyone can suggest this ? Total Price text box appear at Form footer with Control Source : =sum(cdbl(txtSubPrice)) Attachments RFQ.jpg 114.8 KB · Views: 187
Anyone can suggest this ? Total Price text box appear at Form footer with Control Source : =sum(cdbl(txtSubPrice))
GinaWhipp AWF VIP Local time Today, 11:57 Joined Jun 21, 2011 Messages 5,876 Aug 3, 2011 #2 What happens if you just use... =Sum(txtSubPrice)
C cheer Registered User. Local time Tomorrow, 00:57 Joined Oct 30, 2009 Messages 222 Aug 4, 2011 #3 GinaWhipp said: What happens if you just use... =Sum(txtSubPrice) Click to expand... Same error.
T Thales750 Formerly Jsanders Local time Today, 11:57 Joined Dec 20, 2007 Messages 3,731 Aug 4, 2011 #4 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: Aug 4, 2011
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]
GinaWhipp AWF VIP Local time Today, 11:57 Joined Jun 21, 2011 Messages 5,876 Aug 4, 2011 #5 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?
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?
T Thales750 Formerly Jsanders Local time Today, 11:57 Joined Dec 20, 2007 Messages 3,731 Aug 5, 2011 #6 What did you end up doing?
C cheer Registered User. Local time Tomorrow, 00:57 Joined Oct 30, 2009 Messages 222 Aug 8, 2011 #7 Thales750 said: 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] Click to expand... Same error. Could the problem raise up bcos of the unbound textbox? Last edited: Aug 8, 2011
Thales750 said: 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] Click to expand... Same error. Could the problem raise up bcos of the unbound textbox?
C cheer Registered User. Local time Tomorrow, 00:57 Joined Oct 30, 2009 Messages 222 Aug 8, 2011 #8 GinaWhipp said: 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? Click to expand... 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: Aug 8, 2011
GinaWhipp said: 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? Click to expand... 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 ?
C cheer Registered User. Local time Tomorrow, 00:57 Joined Oct 30, 2009 Messages 222 Aug 8, 2011 #9 Thales750 said: What did you end up doing? Click to expand... Still can't find any solution
GinaWhipp AWF VIP Local time Today, 11:57 Joined Jun 21, 2011 Messages 5,876 Aug 23, 2011 #10 Cheer, Are you saying the boxes you are totaling on are UNBOUND?
S smig Registered User. Local time Today, 18:57 Joined Nov 25, 2009 Messages 2,209 Aug 24, 2011 #11 you can't sum Unbound controls
C cheer Registered User. Local time Tomorrow, 00:57 Joined Oct 30, 2009 Messages 222 Aug 24, 2011 #12 GinaWhipp said: Cheer, Are you saying the boxes you are totaling on are UNBOUND? Click to expand... 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: Aug 25, 2011
GinaWhipp said: Cheer, Are you saying the boxes you are totaling on are UNBOUND? Click to expand... 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 .
S smig Registered User. Local time Today, 18:57 Joined Nov 25, 2009 Messages 2,209 Aug 24, 2011 #13 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 ?
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 ?
GinaWhipp AWF VIP Local time Today, 11:57 Joined Jun 21, 2011 Messages 5,876 Aug 24, 2011 #14 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?
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?