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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to post Datagrid back to access table

How to post Datagrid back to access table

Scheduled Pinned Locked Moved Visual Basic
questiontutorialannouncement
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.
  • N Offline
    N Offline
    New_Coder
    wrote on last edited by
    #1

    2 Questins How do I update my access table with changes from 1 field only? Is there an easy way to post the whole datagrid to an access table or do I need to loop through every row in the datagrid table.

    N 1 Reply Last reply
    0
    • N New_Coder

      2 Questins How do I update my access table with changes from 1 field only? Is there an easy way to post the whole datagrid to an access table or do I need to loop through every row in the datagrid table.

      N Offline
      N Offline
      noshaba mariam
      wrote on last edited by
      #2

      to update ur table with one field u can do as follows: dim con as new adodb.connection dim rs as new adodb.recordset con.open connection_string rs.open "Select * from table1 where field1 = '100'" , con if rs.eof = false then rs.movefirst rs.fields("field1") = txt1.text rs.update else msgbox "record not found" end if

      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