Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sum([Bound Control]) not working. Not even displaying.

Posted on 2014-09-23
17
Medium Priority
?
223 Views
Last Modified: 2014-09-24
HI Experts!! I have a field called PmtAmount in a subform. In the footer I have a field named Sum([PmtAmount). The field is displayed but there is no value nor is there an #Error displayed which would indicate I've done something around. I have used this in almost every application I've developed. I'm stumped. Any ideas would be appreciated.
0
Comment
Question by:Ei0914
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
  • 3
  • +2
17 Comments
 
LVL 15

Assisted Solution

by:Haris Djulic
Haris Djulic earned 500 total points
ID: 40340529
is there a typo ?

Sum([PmtAmount) should be Sum([PmtAmount])
0
 

Author Comment

by:Ei0914
ID: 40340533
Good catch but no -- It's correct on the form -- I typed it wrong here :)
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 40340557
is there an equal sign (=) before the formula ?
=Sum([Bound Control])
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Ei0914
ID: 40340560
Yes the equal sign is there.
0
 
LVL 51

Assisted Solution

by:Gustav Brock
Gustav Brock earned 500 total points
ID: 40341385
You may have to requery it from the main form at the OnCurrent event:

Me!NameOfSubformControl.Form.TextboxWithSum.Requery

/gustav
0
 
LVL 61

Assisted Solution

by:mbizup
mbizup earned 500 total points
ID: 40341515
Make sure that the field specified in the SUM(FieldName) is the name of the field as it appears in the underlying table or query, (not the name of the textbox or other control that displays it on your form).
0
 

Author Comment

by:Ei0914
ID: 40342073
The field name is correct. It is the bound field name.  I've tried repaint/requery/refresh all to no avail. I even created a new form to see if there was a corruption and still no dice. This is making me nuts.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40342135
<It is the bound field name>

if you are displaying the total, the textbox should be UNBOUND.
0
 

Author Comment

by:Ei0914
ID: 40342266
I just noticed this issue is occurring on ALL forms -- not just the one I had originally mentioned.
0
 

Author Comment

by:Ei0914
ID: 40342270
The field is: = Sum([the bound field name]) as I have always done. As I said above -- I just noticed it's happening throughout the application. I'm going to run a repair on Office to see if that might do something. This is beyond strange.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 40342288
Do you have other totals in this subform footer?  Sometimes problems in one calculation can make the rest of the (previously working) calculations fail.
0
 

Author Comment

by:Ei0914
ID: 40342294
OKAY! I did a repair and now all the totals are working and visible. What the heck? Thank you all for your input. I will share the points among you for you help. This was a new one for me!!
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40342298
did the C&R fixed the error?
0
 

Author Closing Comment

by:Ei0914
ID: 40342299
As always, thanks for your help.
0
 

Author Comment

by:Ei0914
ID: 40342301
C&R did not --- but a Repair on the Office Installation did the trick.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 40342305
Also, you haven't responded to Gustav's post.  Did you try his requery suggestion?

For most of the other suggestions here, I would have expected to see #error or #name rather than nothing at all.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 40342309
Sorry,  missed some posts.  I'll blame it on my cellphone   :)
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question