Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 7th, 2003, 09:44 AM
mrc00p105 mrc00p105 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 mrc00p105 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Control Value Calculation

I have tried numerous methods to obtain a sum value displayed within a control box on a form. The calculation occurres within one colum of a subform. and concerns a customers purchase of several items.

This is very similiar to the example given in the Northwind database concerning the orders form where it calculates a subtotal then adds freight for a total. Because my form does not incorporate a frieght charge I have tried to use the subtotal calculation without success.

I would really appreciate some insite on how to accomplish this. Or a better method. I have also tried this on the footer of the subform without luck. I really need the formula that will work

thanks Coop

Reply With Quote
  #2  
Old October 8th, 2003, 07:17 AM
m_lazor m_lazor is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Luxembourg
Posts: 156 m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
In the subform:
add an Unbound text box and call it MySumFieldInSubForm
and set
ControlSource= Sum(FieldToSum)

In the main form:
add an Unbound text box:
set controlsource to

ControlSource = [subformCONTROLName]![MySumFieldInSubForm] + AllTheRest

Reply With Quote
  #3  
Old October 19th, 2003, 09:56 PM
drmojo77 drmojo77 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 137 drmojo77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 23 m 36 sec
Reputation Power: 5
ok now for another question on the same subject.

how do you divide 2 fields when they are using the calculation

=Sum([example1]) and =Sum([example2]) to get a percentage.

thanks

Reply With Quote
  #4  
Old October 20th, 2003, 03:27 AM
m_lazor m_lazor is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Luxembourg
Posts: 156 m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Without testing that [MyTextField1]/[MyTextField2] works I would say put a field with [example1] / [example2] in the details section and the sum of it in the group or report or page header/footer

Reply With Quote
  #5  
Old October 20th, 2003, 11:02 AM
drmojo77 drmojo77 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 137 drmojo77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 23 m 36 sec
Reputation Power: 5
thanks got it to work.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Control Value Calculation


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT