Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2014
    Posts
    2

    Problems with Date Range Parameters in query

    So I've created a query that prompts the user to enter a start date and an end date before they query is ran. I've noticed that the query will not pull any data that has the end date as the date entered. I've tried a few different expressions:

    Between [Start Date] And [End Date]


    >=[Start Date] and <=[End Date]

    I've never had this issue before and not sure why now.

    Is there something that I'm missing or a better formula/expression to use?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Likely your date field includes a time component. You can add 1 to the end date or use DateValue() on the field with the criteria.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Dec 2014
    Posts
    2
    Ha yeah that did the trick. It was a time component that was being pulled from the table.

    Appreciate it.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Problems with date range in query
    By pbaccess in forum Access
    Replies: 1
    Last Post: 02-18-2014, 04:54 AM
  2. Parameters (Date Range) not working
    By smarty84handsome in forum Reports
    Replies: 4
    Last Post: 07-24-2013, 11:36 AM
  3. Replies: 17
    Last Post: 01-16-2013, 08:22 PM
  4. Replies: 8
    Last Post: 12-21-2011, 12:50 PM
  5. date range form values as parameters
    By cfnieder in forum Forms
    Replies: 8
    Last Post: 08-11-2010, 01:48 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