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. Problem In Date In sql Query

Problem In Date In sql Query

Scheduled Pinned Locked Moved Database
databasecsharphelpquestion
2 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.
  • T Offline
    T Offline
    Tirthadip
    wrote on last edited by
    #1

    I am using MS Access 2003 with VB.Net 2003. In one of my Table A field(ResignDate) is of type Text I am writing following query to retrieve the name and other information of employee who resigned before a specific date which is to be given in the condition..... my query is.. Dim sql16 As String = "SELECT Employee_AutoID,NameInitial,NameInitial+' '+Name " & _ "AS Emp_Name,Designation FROM tblEmployeeMaster " & _ "WHERE Resign_Flag='No' OR CDate(ResignDate)< #" & endDayOFFinancialYear & "# " what is wrong in the query....

    Tirtha Miles to go before I sleep

    S 1 Reply Last reply
    0
    • T Tirthadip

      I am using MS Access 2003 with VB.Net 2003. In one of my Table A field(ResignDate) is of type Text I am writing following query to retrieve the name and other information of employee who resigned before a specific date which is to be given in the condition..... my query is.. Dim sql16 As String = "SELECT Employee_AutoID,NameInitial,NameInitial+' '+Name " & _ "AS Emp_Name,Designation FROM tblEmployeeMaster " & _ "WHERE Resign_Flag='No' OR CDate(ResignDate)< #" & endDayOFFinancialYear & "# " what is wrong in the query....

      Tirtha Miles to go before I sleep

      S Offline
      S Offline
      Shuaib wasif khan
      wrote on last edited by
      #2

      remove Cdate function resigndate='"+enddayofffinancialyear+"'

      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