Pls Help I want to add new record to table using VC++, i have tried following code but gettting DEBUG ERROR.
dataTableSet recset(pdb);
recset.Open();
recset.AddNew();
// i have not included m_Stock_ID, Stock_ID is Primary KEY
//in my access table.assuming that it will just add new
//number to the record upon pressing Add Record button
// and add the following two field
m_Stock_Name = m_StockName; //read from dialog box
m_Stock_Price = m_StockPrice;
Updatedata(FALSE);
Please tell me where i am going wrong, or direct me in the right direction.
thanks for any help.
dataTableSet recset(pdb);
recset.Open();
recset.AddNew();
// i have not included m_Stock_ID, Stock_ID is Primary KEY
//in my access table.assuming that it will just add new
//number to the record upon pressing Add Record button
// and add the following two field
m_Stock_Name = m_StockName; //read from dialog box
m_Stock_Price = m_StockPrice;
Updatedata(FALSE);
Please tell me where i am going wrong, or direct me in the right direction.
thanks for any help.