MinnisotaFreezing
Programmer
Hey all, I'm getting a "Invalid Attribute/Option Identifier" error in a MessageBox after the NewSet.Update() line of the following code
The Open() works fine, and I get connected to the database and get the data I expect, but the update fails. I set the last argument of CDatabase::Open to FALSE to specifically not load the cursor library because I am trying to update a MS Access table with more than 40 fields, and that fails with the cursor library according to MSDN. However, I have tried using the above code to update a table with <40 fields, and I still get the error "Invalid Attribute/Option Identifier" Can anyone help with this, or give me an idea on how to update a table with 40+ fields using CDatabase?
Thank you in advance,
CJB
Code:
CDatabase m_dbCust;
m_dbCust.Open( NULL, FALSE,
TRUE, _T("ODBC;DSN=dynacom"), FALSE);
AccPay NewSet(&m_dbCust);
NewSet.m_strFilter = "";
NewSet.Open();
NewSet.Edit();
NewSet.m_DynacomPO = 12.00;
NewSet.Update();
NewSet.Close();
Thank you in advance,
CJB