Requery()
-
hi guys, i am using a derived class from the CDaoRecordset ( Table-type )class for my database. I tryed the following code and i got an assert. The assert is in the requery() function. I cant use the Requery() function i dont know why !!! Please see code: in my function m_pSet = new CDaoTable; m_pSet->Open(); m_pSet->AddNew(); m_pSet->m_Auto = "XXX"; m_pSet->Update(); m_pSet->m_strFilter = "Auto='XXX'"; // here i got the assert m_pSet->Requery(); ... The assert is in the daocore.cpp line 3611 "ASSERT(CanRestart()); Best Regards Sonu
-
hi guys, i am using a derived class from the CDaoRecordset ( Table-type )class for my database. I tryed the following code and i got an assert. The assert is in the requery() function. I cant use the Requery() function i dont know why !!! Please see code: in my function m_pSet = new CDaoTable; m_pSet->Open(); m_pSet->AddNew(); m_pSet->m_Auto = "XXX"; m_pSet->Update(); m_pSet->m_strFilter = "Auto='XXX'"; // here i got the assert m_pSet->Requery(); ... The assert is in the daocore.cpp line 3611 "ASSERT(CanRestart()); Best Regards Sonu