PavelGur
Programmer
- Sep 21, 2001
- 75
I got this error on Recordset AddNew which I used many times before and have never had any prblems. I checked all values and column names and did not find any suspects. I also searched Web and did not find any meaningful answers. Here is the code:
Any ideas?
Thank you, Pavel.
Code:
pBTCH->AddNew();
pBTCH->m_CurBatch;
pBTCH->m_PolicyNum = iPolNum;
pBTCH->m_CrntTime = tBatch;
pBTCH->m_NumOfStocks = 1;
pBTCH->m_PurAmount = floor(fPurAmount * 100 +.05) / 100;
pBTCH->m_SellAmount = 0;
pBTCH->m_CurAmount = floor(fCurAmount * 100 +.05) / 100;
pBTCH->m_BtchClosed = false;
pBTCH->Update();
Thank you, Pavel.