There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Business Applications
Tag Cloud
audio backup blue screen boot bsod compaq computer cpu crash dell drivers dvd error excel firefox format freeze freezing hard drive install internet internet explorer kb951748 laptop loss of internet malware memory motherboard network networking outlook outlook 2007 problem restart screen slow sound spyware startup trojan update virus vista website windows windows xp winxp wireless zonealarm zone alarm
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: MsAccess Running Sum


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
glass90land's Avatar
Junior Member with 5 posts.
 
Join Date: Oct 2008
Experience: Intermediate
05-Oct-2008, 12:44 PM #1
Angry Solved: MsAccess Running Sum
First how can I easily display tabular data in this forum

I am trying to build a database to record my climbing exploits. I want to keep a running sum of pitches and lengths like in the attachment (relevant data only shown - figures in brackets = what I get)


To do the running totals I have used running sum fields as follows

Num led by me Iif([led by]="me",1,0)
This works

length Iif([led by]="me",[length],0)
This does not work, the running sum is not kept as can be seen above.

If I change the field value (length), for a constant eg 6, a running sum is kept, If I just put in length as the source (without the Iif statement) it does not work. It just puts the value and not the running sum

What is going on please? Its driving me crackers

MS Access 2003 Window XP home
Attached Images
File Type: bmp mscrap239.bmp (41.0 KB, 3 views)
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 6,863 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
05-Oct-2008, 01:58 PM #2
Where in Access are you doing these calculations?
glass90land's Avatar
Junior Member with 5 posts.
 
Join Date: Oct 2008
Experience: Intermediate
05-Oct-2008, 05:06 PM #3
I am doing the calculations in a report text box, following the example on the MSAccess help pages. Actually I have done it another way now, but would still like to know what is going on - Thanks
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 6,863 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
06-Oct-2008, 08:20 AM #4
Can you post a zipped copy of the database, less any "personal" data as an attachment.
It would be best if you Compact & repair it first to reduce it's size.
If we can't get the iif statements to work I can create you some simple VBA code to do it.
__________________
.
.
OBP
I do not give up easily
glass90land's Avatar
Junior Member with 5 posts.
 
Join Date: Oct 2008
Experience: Intermediate
06-Oct-2008, 02:40 PM #5
Smile Its OK I've done it another way,
Thanks for your interest, but I have erased the non-working boxes and used a query and it works now

Cheers Paul
MRdNk's Avatar
Computer Specs
Senior Member with 284 posts.
 
Join Date: Apr 2007
Experience: Pretty Darn Good at Excel
06-Oct-2008, 02:42 PM #6
Please mark thread as Solved.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:20 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.