Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Searching in a date range with sql

Searching in a date range with sql

Scheduled Pinned Locked Moved Database
databasequestioncomalgorithmshelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tim Rymer
    wrote on last edited by
    #1

    hey, I have a ms access file that stores when an entry was made. if that date field is today, i want to store it in a recordset object. how do i query that? "SELECT CheckDate WHERE Checkdate = ???? TO ???? " how would that work??? Please help! Thanks a bunch! ~Timothy T. Rymer http://tim.xpertz.com http://www.digipen.edu http://www.ttrx.com

    E 1 Reply Last reply
    0
    • T Tim Rymer

      hey, I have a ms access file that stores when an entry was made. if that date field is today, i want to store it in a recordset object. how do i query that? "SELECT CheckDate WHERE Checkdate = ???? TO ???? " how would that work??? Please help! Thanks a bunch! ~Timothy T. Rymer http://tim.xpertz.com http://www.digipen.edu http://www.ttrx.com

      E Offline
      E Offline
      Ed Gadziemski
      wrote on last edited by
      #2

      SELECT CheckDate WHERE CheckDate BETWEEN #??/??/??# AND #??/??/??# should do it.

      P 1 Reply Last reply
      0
      • E Ed Gadziemski

        SELECT CheckDate WHERE CheckDate BETWEEN #??/??/??# AND #??/??/??# should do it.

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #3

        Ed Gadziemski wrote: SELECT CheckDate WHERE CheckDate BETWEEN #??/??/??# AND #??/??/??# should do it. Thanks! I live and learn. Being doing it the hard way all this time :rolleyes: FEI: for SQL users replace the hash/pound, #, with a single quote, '. e.g. SELECT CheckDate WHERE CheckDate BETWEEN '??/??/??' AND '??/??/??' regards, Paul Watson Bluegrass Cape Town, South Africa The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge Tim Smith wrote: Over here in the third world of humor (a.k.a. BBC America), peterchen wrote: We should petition microsoft to a "target=_Paul" attribute.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups