Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 4th, 2006, 10:29 AM
Authorized User
 
Join Date: Jul 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sum

hi all,

wonderin if u could help me out with this problem. i currently have a database consisting of a form, and built within that form is a subform. the form takes down personal info on customer claims, and the subform records all payments made to different accounts. i can run the queries and make the reports for all my needs by using fields within the report.

but im tryin to make a query called size of payment, in which the user can pull up all claims between say $5000 and $10 000. i need a field to sum all the payments made by the same customer, even though they are on different records.

thanks in advance



 
Old August 4th, 2006, 12:41 PM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Could you post the table structure you're using? I'm not sure I quite understand how you're storing the data. Would I be right in assuming it's something akin to:

Claim:
ClaimId
Customer
Amount
Date

Payments:
ClaimId
Account
Amount

If so, are you looking for the Amounts paid to be grouped by the Account (or whatever) in the Payments table, or the Customer in the Claims table?






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to sum in for-each Gjella XSLT 1 October 2nd, 2006 08:48 AM
Help: Running Sum (or Cumulative Sum) timdasa VB Databases Basics 1 August 22nd, 2006 03:12 PM
sum utarian Access 2 March 28th, 2005 09:42 PM
need sum help! jbik BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 December 20th, 2004 05:27 PM
SUM or What bertlf Pro VB Databases 2 November 29th, 2003 02:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.