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 acer asus bios bsod computer crash dns drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet java laptop malware memory monitor motherboard network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications > Archive: Business Applications >
Solved: MsAccess Running Sum

Reply  
Thread Tools
glass90land's Avatar
Junior Member with 6 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, 96 views)
OBP's Avatar
OBP OBP is online now
Computer Specs
Distinguished Member with 14,665 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 6 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 online now
Computer Specs
Distinguished Member with 14,665 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 6 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
Member with 439 posts.
 
Join Date: Apr 2007
Location: UK
Experience: Damn I'm good!
06-Oct-2008, 02:42 PM #6
Please mark thread as Solved.
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
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 01:57 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.