Results 1 to 2 of 2
  1. #1
    sdc1234 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    89

    Count Days...

    Greetings, I have a count days querry that counts the # of days per calander month, the problem I am having is that on the month of Oct 19-Nov 30 keeps pulling 3001 days, can you assist: code I am using is :

    Class Length: IIf(Len(Trim([EMI_Courses_ALL]![CourseDates]))<=11,Val(Right(Trim([EMI_Courses_ALL]![CourseDates]),2))-Val(Mid(Trim([EMI_Courses_ALL]![CourseDates]),4,3)),Val(Right(Trim([EMI_Courses_ALL]![CourseDates]),2)+Mid(Trim([EMI_Courses_ALL]![CourseDates]),4,3))-Val(Mid(Trim([EMI_Courses_ALL]![CourseDates]),4,3)))+1

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    Are you trying to count number of days between 2 dates?

    If that is the case, why don't you use "DateDiff"?

    =DateDiff("d", [Date1], [Date2])

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

Similar Threads

  1. Count how many days since and on what date
    By burrina in forum Queries
    Replies: 28
    Last Post: 01-26-2013, 11:57 AM
  2. Count Sunday & Saturday between two days.
    By kashif.special2005 in forum Queries
    Replies: 2
    Last Post: 02-23-2012, 06:19 PM
  3. Count number of days
    By ramindya in forum Queries
    Replies: 1
    Last Post: 02-22-2012, 04:47 PM
  4. Count days past a set date
    By tsn.s in forum Access
    Replies: 2
    Last Post: 12-01-2011, 09:49 AM
  5. Select Dates between days and two days ago?
    By rstonehouse in forum Queries
    Replies: 4
    Last Post: 08-18-2010, 02:13 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