Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RE: From Dec. 22's "Calculate balance on Report"

Status
Not open for further replies.

vistor

Technical User
Dec 22, 2000
164
US
The ANSWER worked in the query, but only gave the balance for the first conference taken, any additional conference was not subtracted. Nothing showed on the report.

I guess I need a running balance? I do have a SUM of spent on the report but can't get it to subtract the Sum of spent from the start_amount to give the balance.

QUESTION:

I have one table. I have multiple enteries for people as they attend different
conferences throughout the year.

I want to take the start_amount - spent + credit fields to equal balance on my report.

I've tried doing it in the query but keep getting errors.

I've gotten the report to give me what I want by having a SUM text box on the form with this in the Control Source:
Travel_Requistion.start_amount]-Sum([spent])
but it asks for the amount parameter each time I run the report. I don't want
that because people running the report would not know someone's
start_amount.
Any suggestions?

ANSWER: Dec 22, 2000

in your query, drag the fields start_amount, spent, and credit from your table
into the criteria window. In the fourth column type:
balance: ([start_amount]-[spent]+[credit])

This should give you a result in your query that shows the balance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top