Results 1 to 3 of 3
  1. #1
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245

    Dsum, multiple dates in the same month, not ordering right...

    Here is my expression:

    Net: FormatCurrency(DSum("[Cash]","AccountSummary","[ClientID]= " & [ClientID] & " And [MonthlyDate] <#" & [MonthlyDate] & "#"))



    I have it working except for when the month has multiple dates in it. meaning.

    02/01/2013......20
    31/01/2013......10
    and so on..

    I starts the DSUM, in the wrong order. It should be flipped.

    Thanks

  2. #2
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Is this consistent with all clients based upon your date order, or could this be a problem with the date order MM/DD/YYYY vs DD/MM/YYYY?

    My eyes read Feb 1 vs Jan 31, and I wonder if the system might be too smart for its own good. Not likely, but first thing that popped into my head.

    What is the underlying data that got those results?

  3. #3
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245
    the data it sums, is the expression value of another query. now access shows the dates are Jan 2 2013. and Jan 31 2013. I checked by running the query and seeing the value on the popup calendar.

    Also, The MonthlyDate is sorted ascending. and it does have it in the correct order.

    all dates inputed are in dd/mm/yyyy

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

Similar Threads

  1. filter dsum between dates on a form
    By sdel_nevo in forum Forms
    Replies: 5
    Last Post: 06-03-2013, 03:07 PM
  2. Replies: 2
    Last Post: 10-15-2012, 07:27 AM
  3. Showing dates in current month only
    By fistja in forum Queries
    Replies: 2
    Last Post: 04-09-2012, 10:17 AM
  4. Replies: 1
    Last Post: 03-02-2012, 11:09 AM
  5. Replies: 5
    Last Post: 06-30-2009, 09:30 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