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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculation inside a group footer

Status
Not open for further replies.

vasu1211

Technical User
May 10, 2007
21
US
I want to do a calculated field inside a report. for example

One of the group footers contains these fields

1)Total Transport Amt 2)Total Sunrate amount.

Now i want to add the third field - Savings which is the difference between the above two fields. How can i do it in the group footer with out having to go back to record source.

Is it true that we could do some text calculation for this like text 93 - text 92 or something like that. Where to find the text nos for different fields in a report

Please help
 
In design mode of the report Right click on one of the required fields (Total Transport Amount) and then properties. Then select the tab 'Other' and the name of the field will be in the top field of the tab, or just look at the far left of the formatting toolbar.

once you have both field names it's just a case of putting another text box on the report in the required place and typing =[fieldname]-[fieldname] into the box.

If you make something idiot proof - They'll Only make a better idiot!!!
 
vasu1211,
Don't use names like "text 93 - text 92" in expressions. Do yourself a favor and rename the significant controls so your report is self-documenting. Try naming your text boxes
txtTotalTransportAmt
txtTotalSunrateamount
Then your new text box will have a control source of:
=txtTotalTransportAmt - txtTotalSunrateamount


Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top