PC Review


Reply
Thread Tools Rate Thread

Cumulative percentage in subform

 
 
BruceM
Guest
Posts: n/a
 
      29th Jan 2007
I wish to determine a cumulative percentage for subform records. I can use
something like this as the control source of an unbound text box (formatted
as Percent) in the subform footer:
=([Forms]![MainForm]![Qty] - [SubQty]) / [Forms]![MainForm]![Qty]
where [Forms]![MainForm]![Qty] is a field from the main form's record
source, and [SubQty] is a field in the subform record. If the main form's
value is 100 and the subform's value is 10 I need the result to be 90%,
which it is. However, if there are two subform records, each with the same
value, then the percentage needs to be 90% * 90%, or 81%. As it stands the
textbox in the footer calculates the first
I could get the same result for a single record using VBA or a calculated
query field. I'm not particular about how to go about this, but I can't
discover a way of producing the desired result. If there was a Product
function in the same way there is a Sum or Avg function it would probably do
the trick, but if there is such a thing it is not called Product, nor any
other name that occurs to me.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PUZZLED - Daily Percentage Change and Cumulative Stuart Microsoft Excel Discussion 7 12th Nov 2008 12:01 AM
cumulative percentage Cory Microsoft Access Form Coding 4 21st Dec 2007 02:54 PM
Calculating cumulative percentage =?Utf-8?B?UHJvc3BlY3Q=?= Microsoft Excel New Users 4 5th Apr 2007 04:12 AM
basic question - how to calculate a cumulative percentage? =?Utf-8?B?UHJvc3BlY3Q=?= Microsoft Excel Worksheet Functions 3 4th Apr 2007 01:59 PM
Basic question - how to calculate a cumulative percentage =?Utf-8?B?UHJvc3BlY3Q=?= Microsoft Excel Misc 2 4th Apr 2007 12:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:59 AM.