Results 1 to 6 of 6
  1. #1
    abulfouz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    2

    Start Date and End Date problem

    I am trying to run a query, in which i want to filter transactions between certain dates, so i have a Criteria
    >= [Enter Start Date] And <= [End Date]

    this prompts the user to enter the start date and end date..... but the problem i face is for the End date part it does not filter the date that is equal '=' it brings only whatever is less '<'



    For example... if i asked for Start Date 10/01/2014 and end date 10/15/2014.... it brings data from 10/01 to 10/14 it does not show 10/15/2014

    Please help

  2. #2
    qa12dx is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    india
    Posts
    112
    between [Enter Start Date] And [End Date]

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Do the Start date and end date fields have a time included?
    Something like 10/4/2014 08:00 AM

    If so, then no dates > midnight would be returned for the last date.

  4. #4
    abulfouz is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    2
    I have tried the Between too it returns the same result...
    no the dates dont have a time format.. short date and dd/mm/yyyy

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Could you post the dB? What is the query name that is having the problem?

  6. #6
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    In Access BETWEEN is inclusive so will retrieve
    greater or Equal StartDate and Less or Equal EndDate.

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

Similar Threads

  1. Replies: 12
    Last Post: 01-23-2014, 03:24 PM
  2. Replies: 3
    Last Post: 03-15-2013, 03:16 AM
  3. Replies: 15
    Last Post: 04-06-2012, 10:57 AM
  4. Replies: 1
    Last Post: 07-07-2010, 04:22 PM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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