Access 2007 Report

Hello,
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?
SabealgoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mbizupCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GrahamMandenoCommented:
Awesome answer, Miriam ... I was at a loss where to start with so little information :-)
0
mbizupCommented:
Thanks, Graham :)
0
Richard DanekeTrainerCommented:
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.
0
SabealgoAuthor Commented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

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.