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. Query Date Field Type In Access

Query Date Field Type In Access

Scheduled Pinned Locked Moved Database
databasequestion
5 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
    Tunde Ajibawo
    wrote on last edited by
    #1

    How do I query Access Date field, My query returns no records This is my query "Select * from Score where testDate = 3/10/2005"

    C E 2 Replies Last reply
    0
    • T Tunde Ajibawo

      How do I query Access Date field, My query returns no records This is my query "Select * from Score where testDate = 3/10/2005"

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      I don't know about Access, but I always use the ISO date format YYYY-MM-DD


      My: Blog | Photos WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

      1 Reply Last reply
      0
      • T Tunde Ajibawo

        How do I query Access Date field, My query returns no records This is my query "Select * from Score where testDate = 3/10/2005"

        E Offline
        E Offline
        Edbert P
        wrote on last edited by
        #3

        AFAIK in Access you use # in between the date, e.g. #3/10/2005# Use the ISO format that Colin mentioned though (#2005-10-03#). Edbert

        T 1 Reply Last reply
        0
        • E Edbert P

          AFAIK in Access you use # in between the date, e.g. #3/10/2005# Use the ISO format that Colin mentioned though (#2005-10-03#). Edbert

          T Offline
          T Offline
          Tunde Ajibawo
          wrote on last edited by
          #4

          Edbert P. wrote: AFAIK in Access you use # in between the date, e.g. #3/10/2005# I try this but still no result Select * from Score where testdate = #2005-03-10# And there is a record with that date

          E 1 Reply Last reply
          0
          • T Tunde Ajibawo

            Edbert P. wrote: AFAIK in Access you use # in between the date, e.g. #3/10/2005# I try this but still no result Select * from Score where testdate = #2005-03-10# And there is a record with that date

            E Offline
            E Offline
            Edbert P
            wrote on last edited by
            #5

            Perhaps the date you supplied is in mm/dd/yyyy (U.S.) format instead of dd/mm/yyyy format. Try testing with several dates and combination of dates and see which one gives you a result. Edbert

            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