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. General Programming
  3. ATL / WTL / STL
  4. what is the bug in the statement

what is the bug in the statement

Scheduled Pinned Locked Moved ATL / WTL / STL
databasehelpc++question
5 Posts 4 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

    hi there, 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

    H I V 3 Replies Last reply
    0
    • G GANsJob

      hi there, 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

      H Offline
      H Offline
      HakunaMatada
      wrote on last edited by
      #2

      Maybe SELECT * from FDetails where ddate = "05/29/2006" or SELECT * from FDetails where ddate = #05/29/2006# I believe this is not a post for the ATL/WTL/STL group...:^) --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!

      G 1 Reply Last reply
      0
      • G GANsJob

        hi there, 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

        I Offline
        I Offline
        Igor Vigdorchik
        wrote on last edited by
        #3

        Something like this: SELECT * from FDetails where to_char(ddate, 'mm/dd/yyyy') = '05/29/2006'

        1 Reply Last reply
        0
        • H HakunaMatada

          Maybe SELECT * from FDetails where ddate = "05/29/2006" or SELECT * from FDetails where ddate = #05/29/2006# I believe this is not a post for the ATL/WTL/STL group...:^) --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!

          G Offline
          G Offline
          GANsJob
          wrote on last edited by
          #4

          HI ya its working. I had not got any response from ADO GROUP hence i posted here thank you

          1 Reply Last reply
          0
          • G GANsJob

            hi there, 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

            V Offline
            V Offline
            Visual C Help Code Proj
            wrote on last edited by
            #5

            ;)Hi Gan,You have not any mistake in the query, But problem may there if your format in oracle registry is different.check the registri. For urjent you can find by using like statement for date field. Thanks Pramod. Pramod Kumar Dhal.CMS Computers ltd.,Mumbai.

            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