Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Requery()

Requery()

Scheduled Pinned Locked Moved C / C++ / MFC
c++databaseannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sonu Kapoor
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • S Sonu Kapoor

      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

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      I think it's because of your cursel type I don't remember now which one couldn't use Requery(),but you can check in MSDN Mazy Don't Marry a Person You Can Live With... Marry Someone You Can Not Live Without

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups