Solved

Total For Two Fields On a bound form

Posted on 2014-01-02
3
278 Views
Last Modified: 2014-01-02
The user has requested a total of two fields on a form bound to a table (tblAccountInfo)

The fields are PrincipalAmt and InterestAmt.

T o create the total fields I copy and pasted the InterestAmt field.

I then replaced the control source with several variations of 'PrincipalAmt + InterestAmt' in one even included and = first  '=PrincipalAmt + InterestAmt'

NO matter what I've tried I get the #Name in the field when the form is displayed.

What is the magic combination to get a total for these two fields on the screen?
0
Comment
Question by:mlcktmguy
3 Comments
 

Accepted Solution

by:
kevinrea earned 250 total points
Comment Utility
In the control source of your new field, that is, the one that you want the total to appear in , you want to put the following:
=[PrincipalAmt] + [InterestAmt]

Kevin Rea
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
You will also probably want to wrap each Field with Nz(), in case one of the values is Null and the other is not:

=Nz([PrincipalAmt],0) + Nz([InterestAmt],0)

This will avoid 'Null Propagation'

mx
0
 
LVL 1

Author Closing Comment

by:mlcktmguy
Comment Utility
Yep, that was the magic combo, enclosing each field in brackets
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

772 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now