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. C / C++ / MFC
  4. How to store a numeric value to *.mdb table from edit box

How to store a numeric value to *.mdb table from edit box

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasehelptutoriallearning
3 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.
  • E Offline
    E Offline
    Emre Zorlu
    wrote on last edited by
    #1

    :confused:I'm working on a project which is Single Document-MFC. I'm learning database(ODBC) programing vith visual C++ 6.0. I want to enter a numeric value into an EditBox. Then this value should be stored in *.mdb table as Long Integer. I chose catagory as value and variable type as long for EditBox from class wizard. But I could not write any code for it. please,help me ! emroz

    T T 2 Replies Last reply
    0
    • E Emre Zorlu

      :confused:I'm working on a project which is Single Document-MFC. I'm learning database(ODBC) programing vith visual C++ 6.0. I want to enter a numeric value into an EditBox. Then this value should be stored in *.mdb table as Long Integer. I chose catagory as value and variable type as long for EditBox from class wizard. But I could not write any code for it. please,help me ! emroz

      T Offline
      T Offline
      Toni78
      wrote on last edited by
      #2

      Emre Zorlu wrote: But I could not write any code for it. What do you mean by it? This is the second time you're asking this question. Don't you think you should provide more details? // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie

      1 Reply Last reply
      0
      • E Emre Zorlu

        :confused:I'm working on a project which is Single Document-MFC. I'm learning database(ODBC) programing vith visual C++ 6.0. I want to enter a numeric value into an EditBox. Then this value should be stored in *.mdb table as Long Integer. I chose catagory as value and variable type as long for EditBox from class wizard. But I could not write any code for it. please,help me ! emroz

        T Offline
        T Offline
        Terry ONolley
        wrote on last edited by
        #3

        At a very high level: 1) Get the text from the edit box 2) Validate it 3) Create a DAO object and connect to your database 4) Call the Recordset's AddNew or Update to insert the data Which of these actions do you need more help with? I'm going to live forever or die trying!

        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