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. C#
  4. use insert command on c# form to access database

use insert command on c# form to access database

Scheduled Pinned Locked Moved C#
csharpdatabasetutorial
4 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.
  • J Offline
    J Offline
    johnnysmith1
    wrote on last edited by
    #1

    I have C#.net form bound to microsoft access database. form has two textboxes. database has one table with two fields. I want user to be able to open form and enter data into textboxes - click a button and have it entered in database. Is this possible- I know there is an insert command - but not sure how to implement. can you give me info or point me to any examples thank you

    A P 2 Replies Last reply
    0
    • J johnnysmith1

      I have C#.net form bound to microsoft access database. form has two textboxes. database has one table with two fields. I want user to be able to open form and enter data into textboxes - click a button and have it entered in database. Is this possible- I know there is an insert command - but not sure how to implement. can you give me info or point me to any examples thank you

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      An example here[^].

      There are only 10 types of people in this world — those who understand binary, and those who don't.

      J 1 Reply Last reply
      0
      • A Abhinav S

        An example here[^].

        There are only 10 types of people in this world — those who understand binary, and those who don't.

        J Offline
        J Offline
        johnnysmith1
        wrote on last edited by
        #3

        thank you

        1 Reply Last reply
        0
        • J johnnysmith1

          I have C#.net form bound to microsoft access database. form has two textboxes. database has one table with two fields. I want user to be able to open form and enter data into textboxes - click a button and have it entered in database. Is this possible- I know there is an insert command - but not sure how to implement. can you give me info or point me to any examples thank you

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          Don't do data access directly in your form; split it out to a separate class.

          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