Guest_imported
New member
- Jan 1, 1970
- 0
what i have is the following.
//i have open database;
// i have seek for the record that i want;
int stock = recordSet.m_Stock;
int outstock = recordSet.m_OStock;
int stockNew = stock -1;
int outstockNew = outstock +1;
recordSet.m_Stock = stockNew;
recordSet.m_OStock = outstockNew;
UpdateData(FALSE);
What am i doing wrong here, i am trying to chage the values of the fileds Stock and OStock in a database upon (DlbClickOnSold_Button), save database and display the new updated record.
//i have open database;
// i have seek for the record that i want;
int stock = recordSet.m_Stock;
int outstock = recordSet.m_OStock;
int stockNew = stock -1;
int outstockNew = outstock +1;
recordSet.m_Stock = stockNew;
recordSet.m_OStock = outstockNew;
UpdateData(FALSE);
What am i doing wrong here, i am trying to chage the values of the fileds Stock and OStock in a database upon (DlbClickOnSold_Button), save database and display the new updated record.