advanced microsoft access courses in london - cumulative total query
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » advanced microsoft access courses in london - Cumulative Total Query

advanced microsoft access courses in london - Cumulative Total Query

The UK's most regular instructor-led training courses.
Training information: advanced microsoft access courses in london · Microsoft access courses · Microsoft Access Training
See also · microsoft access training · access vba courses · access database course

resolvedResolved · Low Priority · Version Standard

Cumulative Total Query

Caroline has attended:
Excel Advanced course
Excel VBA course
Access Intermediate course

by - delegate Caroline [3 posts] (2007 Mar 19 Mon, 12:29) replyReply

Hi,

I am trying to produce a cumulative total in a query. I am using the DSum function and I can get this to work if I want to compare the ID number and add up totals in this order, but what I really need is to be able to compare dates and add up values in order of the date the action is expected to be completed:

I have three columns in this query - Value (the cost that I want to produce my cumulative total from), the cost ID (the primany key), and the expected cost date (the date the cost is due to come in)

I am hoping to use this query to produce a graph in a report to show how the costs spent over time.

This is the expresion i'm using:

Total Cost: DSum("[Value]","[CostsTable]","[Expected Cost Date] >=" & [InstallTable]![Circuit Expected Live Date])

If I exchange Expected Cost Date with the Cost ID then I can get this to add up, although not in the order I'm hoping to get. But when I use the Expected Cost Date I get blank cells.

Please can you let me know what I am doing wrong with this expresion?

Many thanks,
Caroline

Access Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Nov 26 Wed Bloomsbury 3 book now £224 £235
2007 2008 Nov 28 Fri Bloomsbury 3 book now £240 £245
2003 2008 Dec 3 Wed Southwark 7 book now £203 £230
2003 2008 Dec 19 Fri Bloomsbury 6 book now £214 £230
2003 2008 Dec 24 Wed Bayswater 0 FULL    
2003 2009 Jan 7 Wed Southwark 7 book now £203 £230
Full Schedule: See all 47 Access Advanced course dates.
Bookings currently available until 25th November 2009.

RE: Cumulative Total Query

by - trainer Garry gold contributer[188 posts] (2007 Mar 29 Thu, 12:29) replyReply

make sure it is simular to this

"'[Expected Cost Date]'">=

RE: Cumulative Total Query

by - delegate Caroline [3 posts] (2007 Mar 29 Thu, 14:25) replyReply

Hi Garry,
Thank you but I still cannot get an answer from this.. Could you write out the whole formula for me, please?
Thanks!
Caroline

RE: Cumulative Total Query

by - trainer Rich platinum contributer[744 posts] (2007 Apr 5 Thu, 13:22) replyReply

Hi Caroline,

I think what he meant was, instead of your original:
DSum("[Value]","[CostsTable]","[Expected Cost Date] >=" & [InstallTable]![Circuit Expected Live Date])

Change it to:
DSum("[Value]","[CostsTable]","'[Expected Cost Date]'">= & [InstallTable]![Circuit Expected Live Date])

Your code had the double quote after the greater-than-or-equal-to sign.

He also seems to have added single quotes in between the double quotes and square brackets... that may be important too.

Let us know how you go.

Regards, Rich


Related articles

· How To Find Good Access Database Courses In London
· Take an Access Course to Learn About Relational Databases
· How to Find a Third-Party Venue for Microsoft Access Training
· 3 Reasons to Switch from Excel to MS Access - You'll be Glad You Did!
· Do You Have Trouble Understanding Databases? Consider a One-on-One Access Course

Access tip:

Create calculated fields that work out your age

You can uset eh year function to work out the year from NOW function and then subtract it with your date of birth type field

Age=Year(Now( ))-Year([DoB])

View all Access hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz