Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 23rd, 2003, 08:23 PM
Authorized User
 
Join Date: Dec 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Summing the Results of Two Calculated Fields

I have a main and a subreport which are essentially the same except that the subreport is retricted to pending data while the main report deals with active data. The main and the subreport do not have to be linked. The queries attached to each report are also essentially the same except for the pending/active distinction. I have a nested IIf statement in the query(s) which yield a result - FYAdj: IIf([BegBal]<0,0,IIf([TotalFY1]>[BegBal],[BegBal],[TotalFY1])). On my main report and subreport I have fields that are calculated with the formula =Sum([FYAdj]). I need to add the result of the calculation on the main report to the result of the calculation on the subreport. How can I do it? Thanks for your time and assistance. James
 
Old December 24th, 2003, 12:05 PM
Authorized User
 
Join Date: Dec 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was able to get it to work by converting the results of the calculation to Text on the subform and then adding that to the field on the main form. James





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create calculated fields MacDevv C# 3 August 16th, 2006 09:38 AM
Nested Calculated Fields in Queries SerranoG Access 0 August 14th, 2006 10:04 AM
Help with summing calculated fields on a report dbartelt Access 6 January 4th, 2006 03:33 PM
Storing Calculated Fields dearnne Access 3 September 2nd, 2004 05:30 PM
Storing Calculated Fields dearnne Access VBA 1 August 30th, 2004 10:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.