Access 2007 Report

Posted on 2014-03-13
Medium Priority
Last Modified: 2014-06-11
This inquiry is related to a travel business and the costs that are being reported.  In one report we capture the total insurance field.  On a second report, the cost summary report, we capture the total cost of a trip - including airfare, hotels,etc. This total cost doesn't itemize the details, but just provides a total minus any payments made by the customer.  However this summary report doesn't include the total insurance.  So when a customer has made a payment toward the trip, the difference showing is the insurance paid.

For example -
Total cost   = 1,000
Total payments = 1,200

Balance due =(200)

In this example the customer's total payments also included the insurance.

My question is how can I capture the cost of the insurance as part of the Total cost so that this report balances out correctly?  I would classify myself as a basic user and struggle with reports.  But it seems to me that I have to find where the total cost is captured and find out what it's components are so that I can add the insurance component.    My question is two fold -

1.  Normally where could I look to find the Total Cost (again including various fees, and expenses)?  

2.  Once I find where the Total Cost is, how could I add the insurance amount to it?
Question by:Sabealgo
LVL 61

Accepted Solution

mbizup earned 2000 total points
ID: 39928744
Your questions are highly dependent on the structure of your own database -- which we cannot see unless you upload a sample copy.

<<  Normally where could I look to find the Total Cost>>

Total cost is typically not something that is stored in databases.  You can calculate it on an as needed basis in forms and reports.  In a report, you would set the recordsource property to the correct table or query, and then place a textbox in the report headed or footer with it's control source set to something along the lines of

= SUM(YourCostField)

Open in new window

The exact syntax can vary based on the table structure in your database.

<< 2.  Once I find where the Total Cost is, how could I add the insurance amount to it?>>

You can combine things in the control source of a textbox as follows:

= Sum(YourCostFIeld) + SUM(YourInsuranceField)

Open in new window

... again highly dependent on your own database.  If possible, please attach a sample database in your next comment.  No data needed, if data sensitivity is an issue... just the tables, forms, reports, queries involved so that we can see the structure.
LVL 20

Expert Comment

ID: 39928752
Awesome answer, Miriam ... I was at a loss where to start with so little information :-)
LVL 61

Expert Comment

ID: 39928811
Thanks, Graham :)
LVL 19

Expert Comment

by:Richard Daneke
ID: 39928857
Certainly, not knowing the details of your database makes targeted help difficult.  

I think the key in solving the problem is a better understanding of reports.  First, make a copy of your database before you start looking in the design.  AND, look in the copy you made to protect you from making accidental changes!

Reports are based on queries.  The two reports you mention both have a query that provides the records with the costs.   When you look at the report in design view, you can open the property sheet.  In the top, use the combo box to chose the Report as seen in the picture below.  Open Report Properties
Click on the data tab, then click on the button with the ... to the right of the record source.

This opens the underlying query used in the report.   It sounds like the query used to total costs against payments is not including insurance or is excluding the insurance costs.  Compare this query against the one used to provide insurance costs.  It may better illuminate your solution.

Author Closing Comment

ID: 40127505
Thank you for the feedback.  I tried to get additional information regarding the structure of the database, but ran in to a wall.  This solution helped.
Sorry for the delay in resolving.

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
Implementing simple internal controls in the Microsoft Access application.
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…

587 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