Results 1 to 3 of 3
  1. #1
    maxmaggot is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Location
    Ireland
    Posts
    91

    Cumulative totals for summary payments

    I have a feature I am going to work on on this db . It's on the Funds Page of the navigation bar. I have two text boxes that will show the total of all Christmas Cards ordered by a customer in the Type A range (A1-A5) and Type B (B1-B4) range.

    You'll have to navigate to the last records to get the Christmas cards section to appear as it hides if someone hasn't ordered CCards.

    I have two other text boxes that show how much each person has paid to date for A and B.

    The user doesn't care which card was ordered, only the total price that is due for an A or B type card. The user also doesn't care how much has been paid to date except if its an A or B

    I've been trying queries and the control source but I always fall down when trying to get the A and B ranges. I get an error message about missing syntax. I've had a look around and I just can't see the error.

    I have removed private data from this db but it is large and it will throw up some input boxes. Just click cancel until they go away.

    I'd really appreciate it if you had a look.

    If you need the complete db I can share it with you and give you the xp points on the thread.

    Here is my SQL attempt with no satisfaction


    Code:
    = SELECT Donations.[Donation ID]=Me.[Donation ID], ChristmasCards.TotalPrice, ChristmasCardTypesAndPrices.CCType
    FROM ChristmasCardTypesAndPrices INNER JOIN (Donations INNER JOIN ChristmasCards ON Donations.[Donation ID] = ChristmasCards.DonerRegID) ON (ChristmasCardTypesAndPrices.ID = ChristmasCards.CCType) AND (ChristmasCardTypesAndPrices.ID = ChristmasCards.CardPrice)
    WHERE (((ChristmasCardTypesAndPrices.CCType) Like "B*"));
    Attached Files Attached Files
    Last edited by June7; 04-05-2014 at 10:31 PM.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Make the subform a Continuous View and arrange the controls to look like Datasheet. Then can have textboxes in the subform Form header section with expressions like:

    =Sum(IIf([CCType] Like "A*", [Total Price], 0))

    =Sum(IIf([CCType] Like "B*", [Total Price], 0))

    Otherwise, referencing controls on navigation form is a bit tricky, at least it seems so to me. Review https://www.accessforums.net/forms/t...orm-32053.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    maxmaggot is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Location
    Ireland
    Posts
    91
    Thanks June,
    That got it.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Creating Weekly report from Cumulative Totals
    By Sackface in forum Access
    Replies: 3
    Last Post: 03-14-2013, 11:17 AM
  2. Need To Sum Payments in Query
    By burrina in forum Queries
    Replies: 3
    Last Post: 11-27-2012, 05:35 PM
  3. Cumulative totals: Cannot edit a field in recordset
    By Persist in forum Programming
    Replies: 4
    Last Post: 03-11-2012, 06:38 PM
  4. Replies: 3
    Last Post: 07-18-2011, 04:14 PM
  5. Totals, Cumulative, and Break-Even Help
    By oregoncrete in forum Programming
    Replies: 3
    Last Post: 03-23-2011, 10:09 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums