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. Web Development
  3. ASP.NET
  4. Data type mismatch in criteria expression.

Data type mismatch in criteria expression.

Scheduled Pinned Locked Moved ASP.NET
databasehelp
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.
  • D Offline
    D Offline
    Danzz
    wrote on last edited by
    #1

    I would appreciate any help with the following error message. I'm trying to insert records into a ACCESS database. I would like to include a date field to insert query. I tried to convert it with Convert.ToDateTime(myDate) but it doesnt work. Only when i remove the parameters that holds the date value the query is OK. The Date is in good format. When I'm trying to run this query separately in ACCESS it works well. I'm a novice and may b this is boring stuff! ThanX.

    P 1 Reply Last reply
    0
    • D Danzz

      I would appreciate any help with the following error message. I'm trying to insert records into a ACCESS database. I would like to include a date field to insert query. I tried to convert it with Convert.ToDateTime(myDate) but it doesnt work. Only when i remove the parameters that holds the date value the query is OK. The Date is in good format. When I'm trying to run this query separately in ACCESS it works well. I'm a novice and may b this is boring stuff! ThanX.

      P Offline
      P Offline
      Philip Patrick
      wrote on last edited by
      #2

      Insert/update your dates in following format: "YYYY/MM/DD HH:MM:SS". This always works on both Access and SQL Server, regardless on locale Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

      D 1 Reply Last reply
      0
      • P Philip Patrick

        Insert/update your dates in following format: "YYYY/MM/DD HH:MM:SS". This always works on both Access and SQL Server, regardless on locale Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

        D Offline
        D Offline
        Danzz
        wrote on last edited by
        #3

        ThanX. I solved it by converting with Convert.ToDateTime(). ------------------------------ And of course 2, 3, 4 ... BeeR.

        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