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. Access DB

Access DB

Scheduled Pinned Locked Moved Database
databasehelp
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.
  • Z Offline
    Z Offline
    Zeyad Jalil
    wrote on last edited by
    #1

    Hi All, I want to select a records from access database depends on where clause as the following : select ID as found from TransLog where UserID='61' and TransType='0' and TransTime =#28-04-14 08:46:46# but the error occurred when I use the TransTime =#28-04-14 08:46:46# the error is:: IErrorInfo.GetDescription failed with E_FAIL(0x80004005) Please help me ASAP. Thank you very much

    B S 2 Replies Last reply
    0
    • Z Zeyad Jalil

      Hi All, I want to select a records from access database depends on where clause as the following : select ID as found from TransLog where UserID='61' and TransType='0' and TransTime =#28-04-14 08:46:46# but the error occurred when I use the TransTime =#28-04-14 08:46:46# the error is:: IErrorInfo.GetDescription failed with E_FAIL(0x80004005) Please help me ASAP. Thank you very much

      B Offline
      B Offline
      Bernhard Hiller
      wrote on last edited by
      #2

      Where did you enter that query? In an MS Access GUI? In a .Net application which connects to your database? Also: is that the correct DateTime format of that user?

      1 Reply Last reply
      0
      • Z Zeyad Jalil

        Hi All, I want to select a records from access database depends on where clause as the following : select ID as found from TransLog where UserID='61' and TransType='0' and TransTime =#28-04-14 08:46:46# but the error occurred when I use the TransTime =#28-04-14 08:46:46# the error is:: IErrorInfo.GetDescription failed with E_FAIL(0x80004005) Please help me ASAP. Thank you very much

        S Offline
        S Offline
        sankarsan parida
        wrote on last edited by
        #3

        If you User id is int then no need to put single query. And in TransTime put single quote instead of #

        select ID as found from TransLog where UserID=61 and TransType='0' and TransTime ='28-04-14 08:46:46'

        Sankarsan Parida

        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