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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |