Page 3 of 3 FirstFirst 123
Results 31 to 33 of 33
  1. #31
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,915
    The DSum syntax looks correct, except for the oddball font of quote mark in front of Year1.



    We are going in circles. If you can't provide db for analysis, I won't be able to help further.
    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.

  2. #32
    Hardrock is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Posts
    27
    Update on this thread and new question.....THANKS TO JUNE7 FOR ALL THE HELP. I FINALLY GOT THIS WORKING. Almost!

    With some local help, we found that everything June said should have worked but it seems the WAY I was entering the code was affecting performance. I ended up using this:

    =DSum("[check] + [currency] + [inkind]","money","Year(date1) = " & [Forms]![Organization Details]![Year1] & " AND ContributorID=" & [ContributorID])

    Which is, I think, exactly what June suggested....only difference is we highlighted the DSUM box, clicked the ellipse, and CHOSE the fields, forms, etc from a list rather than typing them in. There may some slight difference but I haven't looked for it yet.

    Anyway....new question. While testing this, I noticed that some of my contributions didn't show up in the report and it seems to be based on the date of the contribution. My report dates currently are 12/10/2013 to 6/20/2014. I have one contributor with two contributions - one of $77 and one of $1.31 (both checks) If the date of the $77 contribution is 4/15/2014, the $77 shows up in the report but if I change the month and the date is 1/15/2014, the $77 doesn't show up ALTHOUGH THE DSUM STATEMENT (for the $1.31 contribution) STILL WORKS AND THE TOTAL FOR 2014 IS $77 + $1.31 OR $78.31. Change date of the $77 contribution back to 4/15/2014 and the $77 is back in the report and the DSUM for the both the $77 and the $1.31 contribution correctly shows $78.31.

    It's like some dates work and some don't....any ideas? My next move is to delete the contributor altogether and start over but if this happens once it could affect my ability to enter new contributions for other contributors and I need to understand what's happening.

    Further testing has led me to conclude that the date problem appears to be related to any date that starts with January. If I put in 1/xx/14, it doesn't work. change the 1 to any other month and it's good.
    Last edited by Hardrock; 03-01-2015 at 11:12 AM. Reason: mistake/clarification

  3. #33
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,915
    The DSum still works because it is not using the report RecordSource as data source, it pulls data directly from table or query object.

    Something about the report is filtering out the records.

    Again, would need to examine db and data.
    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.

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 09-17-2014, 05:19 AM
  2. Replies: 4
    Last Post: 01-25-2013, 05:20 AM
  3. use parameter in field name of select query
    By focosi in forum Queries
    Replies: 2
    Last Post: 02-11-2012, 10:34 AM
  4. Parameter Query Calculations
    By mrk7891 in forum Queries
    Replies: 2
    Last Post: 11-04-2011, 04:33 PM
  5. Parameter Query: Select From A List?
    By catbob in forum Queries
    Replies: 4
    Last Post: 02-08-2010, 08:24 PM

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