A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculation in text box not working



 
 
Thread Tools Display Modes
  #1  
Old December 6th, 2005, 06:40 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Calculation in text box not working

I am grouping cost by group - I want the report to look like this:

MAY COST FIGURES

GROUPHEADER=====================
Brachman Project
Total Spend: $150,000

DETAIL=============================
Engineering : $50,000 33% of total spent
Design: $100,000 67% of total

my control name in the detail section is DeptSum that shows the breakdown; I
also have a text box in the header section showing total spend by project -
it is an unbound text box with the following formula:

=SUM([Team Sum By Vendor]) - the name of that control is txtDeptSum

I want to have a text box that will show the pct breakdown in an unbound text
box - I try to put

=SUM([DeptSum]/[txtDeptSum])

in the detail section, but it doesn't work - I asked someone, and they said
don't use the control names, but I'm almost positive this should work

Any ideas ?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200512/1
  #2  
Old December 6th, 2005, 06:50 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Calculation in text box not working

"but it doesn't work" isn't too descriptive. However, try:
=[DeptSum]/[txtDeptSum]


--
Duane Hookom
MS Access MVP


"Steven R via AccessMonster.com" u12024@uwe wrote in message
news:5870eb36fce3f@uwe...
I am grouping cost by group - I want the report to look like this:

MAY COST FIGURES

GROUPHEADER=====================
Brachman Project
Total Spend: $150,000

DETAIL=============================
Engineering : $50,000 33% of total spent
Design: $100,000 67% of total

my control name in the detail section is DeptSum that shows the breakdown;
I
also have a text box in the header section showing total spend by
project -
it is an unbound text box with the following formula:

=SUM([Team Sum By Vendor]) - the name of that control is txtDeptSum

I want to have a text box that will show the pct breakdown in an unbound
text
box - I try to put

=SUM([DeptSum]/[txtDeptSum])

in the detail section, but it doesn't work - I asked someone, and they
said
don't use the control names, but I'm almost positive this should work

Any ideas ?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200512/1



  #3  
Old December 6th, 2005, 06:58 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Calculation in text box not working

Duane,
Thanks so much - that was the trick - just leaving out the SUM part of the
equation. Sorry for the vague-ness - when I said "It didn't work," I got
message prompts referencing the names in my formulas

Steve


Duane Hookom wrote:
"but it doesn't work" isn't too descriptive. However, try:
=[DeptSum]/[txtDeptSum]

I am grouping cost by group - I want the report to look like this:

[quoted text clipped - 27 lines]

Any ideas ?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200512/1
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Access even the right idea? BMB New Users 19 November 21st, 2005 08:01 PM
Add New Field to DB Karen Database Design 7 October 19th, 2005 08:03 PM
Query for 'confirmation' rogge Running & Setting Up Queries 8 April 19th, 2005 03:26 PM
Combo Box & Text Box AccessRookie Using Forms 3 April 6th, 2005 11:33 PM
Change font of part of text John Powerpoint 7 March 15th, 2005 10:10 AM


All times are GMT +1. The time now is 02:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.