?
Solved

Calculation on a field

Posted on 2015-01-30
6
Medium Priority
?
81 Views
Last Modified: 2015-02-03
Hello,

On my first form I have a calcualation field ..I need to carry that field into my second form...All these fields are on the table.

I was told to use the same calculation on the second form but just add the table name in front of the fields as these fields are not on the second form.

Can it be done this way?  All these fields are on my first form:

=Nz([Total Initial:],0)+Nz([BC1Chng1],0)+Nz([BC1Chng2],0)+Nz([BC1Chng3],0)+Nz([BC1Chng4],0)+Nz([BC1Chng5],0)+Nz([BC1Chng6],0)+Nz([BC1Chng7],0)+Nz([BC1Chng8],0)+Nz([BC1Chng9],0)+Nz([BC1Chng10],0)
0
Comment
Question by:Jass Saini
[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
  • 3
  • 3
6 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40580980
carry that field into my second form.
Carry the Calculation or carry the value?

If the value, then just reference the control itself?
For example, ...If the control that holds your calculation is named "txtBigCalc"
Then simply make the control source of a textbox in the second form:
=Forms!YourFirstForm!txtBigCalc



You will have to explain what you are doing here a bit more (and explain why...)
Is the second form a subform or a standalone form?
0
 

Author Comment

by:Jass Saini
ID: 40584191
Hello,

I have an ending calculation on the first form that has to be the starting calculation on the second form..kind of like a ending balance and the second form is the beginning balance.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 2000 total points
ID: 40585352
...Then you should be able to reference the "value" as I stated, something like this:
    =Forms!YourFirstForm!txtBigCalc
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:Jass Saini
ID: 40586752
It gives me a #Name? error


I tried the subform name and the main form..niether work for some reason
0
 

Author Comment

by:Jass Saini
ID: 40586879
I add the calculation to my query
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40586985
Glad I could help.
0

Featured Post

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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.
Suggested Courses

801 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