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. .NET (Core and Framework)
  4. dBase field called "Value" cannot be edited

dBase field called "Value" cannot be edited

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasequestionannouncement
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.
  • B Offline
    B Offline
    bobbymale77
    wrote on last edited by
    #1

    I can't update the content of the field called "VALUE". Is there any work around to get "1" into that field? Dim conn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\;Extended Properties=dBASE IV;") Dim adapter As New OleDb.OleDbDataAdapter("SELECT * FROM Test.dbf", conn) Dim recordsAffected As Integer = 0 conn.Open() Dim sql As String = "UPDATE Test.dbf SET Value = '1' WHERE Keyword = 'Over_here'" Dim da As OleDb.OleDbCommand = New OleDb.OleDbCommand(sql, conn) recordsAffected = da.ExecuteNonQuery() conn.Close()

    M 1 Reply Last reply
    0
    • B bobbymale77

      I can't update the content of the field called "VALUE". Is there any work around to get "1" into that field? Dim conn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\;Extended Properties=dBASE IV;") Dim adapter As New OleDb.OleDbDataAdapter("SELECT * FROM Test.dbf", conn) Dim recordsAffected As Integer = 0 conn.Open() Dim sql As String = "UPDATE Test.dbf SET Value = '1' WHERE Keyword = 'Over_here'" Dim da As OleDb.OleDbCommand = New OleDb.OleDbCommand(sql, conn) recordsAffected = da.ExecuteNonQuery() conn.Close()

      M Offline
      M Offline
      moon_stick
      wrote on last edited by
      #2

      'value' is a keyword in t-sql which is what the problem probably is. You could wrap the word in square brackets '[value]' which might solve the problem - I haven't got time to try it right at the moment though...

      It definitely isn't definatley

      B 1 Reply Last reply
      0
      • M moon_stick

        'value' is a keyword in t-sql which is what the problem probably is. You could wrap the word in square brackets '[value]' which might solve the problem - I haven't got time to try it right at the moment though...

        It definitely isn't definatley

        B Offline
        B Offline
        bobbymale77
        wrote on last edited by
        #3

        Thank you.

        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