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. Why sql query is not running...? in MSACCESS 2000

Why sql query is not running...? in MSACCESS 2000

Scheduled Pinned Locked Moved Database
databasehelpquestion
5 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.
  • P Offline
    P Offline
    Pankaj Joshi
    wrote on last edited by
    #1

    I want to trim the value so i just write a simple query in MSACCESS 2000 SELECT Trim([ItemName]) AS Expr1 FROM Items But it will give error "Undefind function "Trim" in expression" What to do...?

    Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

    G 1 Reply Last reply
    0
    • P Pankaj Joshi

      I want to trim the value so i just write a simple query in MSACCESS 2000 SELECT Trim([ItemName]) AS Expr1 FROM Items But it will give error "Undefind function "Trim" in expression" What to do...?

      Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

      G Offline
      G Offline
      GuyThiebaut
      wrote on last edited by
      #2

      There is no TRIM commmand in T-SQL you have to use LTRIM then RTRIM as follows: SELECT LTRIM(RTRIM(ItemName)) Expr1 FROM Items Regards Guy

      You always pass failure on the way to success.
      P S 2 Replies Last reply
      0
      • G GuyThiebaut

        There is no TRIM commmand in T-SQL you have to use LTRIM then RTRIM as follows: SELECT LTRIM(RTRIM(ItemName)) Expr1 FROM Items Regards Guy

        You always pass failure on the way to success.
        P Offline
        P Offline
        Pankaj Joshi
        wrote on last edited by
        #3

        Thanks for reply but still query is not working Same error occurred for LTRIM function SELECT LTRIM(RTRIM(ItemFullName)) as Expr1 FROM Items:confused:

        Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

        1 Reply Last reply
        0
        • G GuyThiebaut

          There is no TRIM commmand in T-SQL you have to use LTRIM then RTRIM as follows: SELECT LTRIM(RTRIM(ItemName)) Expr1 FROM Items Regards Guy

          You always pass failure on the way to success.
          S Offline
          S Offline
          Support123
          wrote on last edited by
          #4

          could it be that he is missing references :confused:

          "Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

          P 1 Reply Last reply
          0
          • S Support123

            could it be that he is missing references :confused:

            "Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

            P Offline
            P Offline
            Pankaj Joshi
            wrote on last edited by
            #5

            How to add the reference...? If I write LTRIM RTRIM in a query using C#.net and deploy the application to client site then same problem may occurred...?

            Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

            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