Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 23rd, 2003, 08:23 PM
Authorized User
 
Join Date: Dec 2003
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old December 24th, 2003, 12:05 PM
Authorized User
 
Join Date: Dec 2003
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:21 PM.


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