Solved

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

Posted on 2014-09-23
17
220 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 125 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 125 total points
ID: 40340557
is there an equal sign (=) before the formula ?
=Sum([Bound Control])
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

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

Assisted Solution

by:Gustav Brock
Gustav Brock earned 125 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 125 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

635 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