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

x
?
Solved

Subform Total shows #Error

Posted on 2015-02-11
3
Medium Priority
?
244 Views
Last Modified: 2015-02-16
In MS Access 2010 I have Main form frmMain and subform frmSubMain.
Both forms are not bound forms.
On subform  frmSubMain I have a  several fields one of them is field : “Amount”  this field  I want to summarize.

 All fields on subform showing proper values and that is ok and I can see  Amounts value too .
I put in subform frmSubMain footer  text field txtTotAmount and  formatted it as currency and here I went through Expression Builder and find the field Amount in subform  frmSubMain and put it in, so in field I have : =Sum([Amount]).
It worked before, and I was getting proper amount total value,  I do not remember changing something,  but now I am getting in the txtTotAmount  field value    “ #error “ I tried with  =NZ(Sum(Amount)) but it not worked.
0
Comment
Question by:Taras
[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
  • 2
3 Comments
 
LVL 48

Expert Comment

by:Dale Fye
ID: 40603834
If you want to a control to display a sum, you need to:

1.  use the DSUM( ) domain function to define what column you want to sum, from which table, and under what criteria.

2.  in a bound, continuous form, you could put a control in the footer (txt_SumAmount) of the form and set its control source to:

= SUM([Amount])

If you want to display this sum on the main form, you would hide the footer of the subform, and set the ControlSource of the control on the main form to something like:

= Forms!MainFormName.subFormControlName.Form.txt_SumAmount
0
 

Accepted Solution

by:
Taras earned 0 total points
ID: 40603883
I apologize,  I said subform is not bound  I was wrong . Actually Record Source of subform is Query:  “ QryQueryOne”.
So it means subform  frmSubMain is bound to that query.
0
 

Author Closing Comment

by:Taras
ID: 40611878
Thanks a lot.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
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.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

722 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