Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Archive: Business Applications
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery router safe mode screen slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications > Archive: Business Applications >
Solved: MsAccess Running Sum

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
glass90land's Avatar
Junior Member with 5 posts.
 
Join Date: Oct 2008
Experience: Intermediate
05-Oct-2008, 11:44 AM #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, 34 views)
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 9,329 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
05-Oct-2008, 12: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, 04: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 9,329 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
06-Oct-2008, 07: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, 01: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 413 posts.
 
Join Date: Apr 2007
Experience: Excel, Access, PHP, Js
06-Oct-2008, 01:42 PM #6
Please mark thread as Solved.
Closed Thread Bookmark and Share

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.

Smart Search

Find your solution!



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 -5. The time now is 01:52 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.