Solved

Form Values on to a Report

Posted on 2011-02-24
3
273 Views
Last Modified: 2012-05-11
Good monring,

I am sure this has a simple answer but here we go.

I have built a form that has a Field Name: Total. The field name total is the dollar amount from a sub form called items. Inside the Sub form there are additional field names (Description, Qty, Unit, Unit Cost, and Total). First question I have, how could I make this sub form calculate values, Total=(Qty*Unit Price) and store that value inside the Subform.item.total field name AND still use  the footer of the sub form to calculate the total for me. When I do this, it will not let me take the SUM of the total column in my sub form. Any suggestions?

Currently, I have the sub form set up so it takes the total of the user entered values instead of taking the (qty*unit cost) formula into perspective. When I do that, the total shows up correctly inside the main form but the total does not actual get placed as a value inside the table. So when I pull up a report on that specific main form record, no value shows up in the total box of the report. Anyone know how I can make it so that value stays in that record ASWELL as shows up in any report? Any help would be much appreciated.


Thanks!
 Report TotalsTotals.png
0
Comment
Question by:hcp27
[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 40

Expert Comment

by:als315
ID: 34972969
You can get value for field in report from your form.
Select filed in report designer, press Build in data field, select your form and field on it.
0
 
LVL 40

Expert Comment

by:als315
ID: 34972976
"filed" = field
0
 
LVL 19

Accepted Solution

by:
Eric Sherman earned 250 total points
ID: 34973478
hcp27  ...

Always store just the Product ID, Unit Price and Quantity in your Order Details table.  Then calculate the Total or Extended Price (Unit Price x Quantity) when needed for Forms or Reports, etc.

I always use a Query as a Record Source for the Orders table data entry form that includes the Extended Price calculated field as shown below ...

ExtendedPrice: [UnitPrice]*[Quantity]

Then on your form's footer you can  Sum([ExtendedPrice]).  On reports you can pull the ExtendedPrice field as well.


ET
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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
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…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

623 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