Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
  1. #16
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338

    Thank you
    Should i make another query to gave me sum by month?

  2. #17
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Here is the query

    Newdate Year Month SumOfDepositAmount SumOfWithdrawalAmount YTD
    9 2011 September 725.00 717.00 8
    10 2011 October 2,330.00 525.65 1812.35

    How can i call prior month total in reports with this query??

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Do you want report to show detail records? Here is revision of your report to consider. Open report and enter 11/1/2011 in the popup prompt.
    Attached Files Attached Files
    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.

  4. #19
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    I don't want to show detail. Just sum for prior month. The query is based on transactiondate. I would need it to be based on Datecleared. I would just have to change the fiedls names to Datecleared.

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Well, you provided a report in your db that shows details so that's what I worked with.

    If you don't want details then make the Detail section not visible or make report RecordSouce an aggregate query, probably the one you show in post17.

    Calculate the starting balance in textbox as I show in demo, adjust as appropriate for date criteria.

    Does this now resolve this issue?
    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.

  6. #21
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Yes Thank you very much

  7. #22
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    June7

    I was looking at your post 15. How can i make the static of the date criteria reference to a form???

  8. #23
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Concatenate variables. Reference to control on form is a variable.

    =DSum("[DepositAmount]-[WithdrawalAmount]","T_Transactions","[TransactionDate]<#" & Me.textbox & "#")
    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.

  9. #24
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    =DSum("[DepositAmount]-[WithdrawalAmount]","T_Transactions","[DateCleared]<#" & Me.servicefrom & "#")

    Not sure i did this right. After i enter the date on the form i get Enter Parameter Value ME

  10. #25
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Sorry, I used syntax for VBA.

    =DSum("[DepositAmount]-[WithdrawalAmount]","T_Transactions","[TransactionDate]<#" & Forms!formname!servicefrom & "#")
    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.

  11. #26
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Thank you that wroked

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Running Total Based on a Date in a field
    By scratchmb in forum Access
    Replies: 4
    Last Post: 02-15-2012, 05:31 PM
  2. Prompt User for Date Range when running QUERY
    By taimysho0 in forum Programming
    Replies: 3
    Last Post: 01-30-2012, 11:49 AM
  3. Replies: 10
    Last Post: 11-06-2011, 01:30 PM
  4. Replies: 1
    Last Post: 03-05-2011, 03:05 PM
  5. Running Sum by Date - Help
    By hackfifi in forum Queries
    Replies: 2
    Last Post: 02-08-2011, 07:07 AM

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