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

Calculate a variance between main report and subreport???

Status
Not open for further replies.

Apollo6

Technical User
Jan 27, 2000
418
US
Main Report >> rptMain
Subreport >> rptSub

rptMain has a text box (not caluculated on report) >> txtAllowable...

rptSub has a text box (not calculated on subreport) >> txtSubAllowable...

What is the syntax to subtract txtSubAllowable from txtAllowable???

I tried the following:

=[Reports]![rptMain]![txtAllowable]-[Reports]![rptSub]![txtSubAllowable]

I also tried the same expression without explicitly naming the main report...

Any help is appreciated.
 
As a control source for a text box in the main report, try:
=[txtAllowable]-[subrptControlName].[Report]!{txtSubAllowable]
The subrptControlName is often the name of the subreport.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top