How to store a numeric value to *.mdb table from edit box
-
: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
-
: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
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
-
: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
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!