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. how to apply where condition on date field in msaccess

how to apply where condition on date field in msaccess

Scheduled Pinned Locked Moved Database
databasec++helptutorial
3 Posts 2 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.
  • G Offline
    G Offline
    GANsJob
    wrote on last edited by
    #1

    im using ado in vc++ for access db i have used this query but it shows "data type mismatch in critria expressing" SELECT * from FDetails where ddate = '05/29/2006' ddate is datetime field any one has solution for this problem regards Gan

    M 1 Reply Last reply
    0
    • G GANsJob

      im using ado in vc++ for access db i have used this query but it shows "data type mismatch in critria expressing" SELECT * from FDetails where ddate = '05/29/2006' ddate is datetime field any one has solution for this problem regards Gan

      M Offline
      M Offline
      Michael Potter
      wrote on last edited by
      #2

      I believe MSAccess uses pound signs to deliniate dates.

      SELECT * from FDetails where ddate = #05/29/2006#
      
      G 1 Reply Last reply
      0
      • M Michael Potter

        I believe MSAccess uses pound signs to deliniate dates.

        SELECT * from FDetails where ddate = #05/29/2006#
        
        G Offline
        G Offline
        GANsJob
        wrote on last edited by
        #3

        thank u itz now working

        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