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. MFC /CRecordset

MFC /CRecordset

Scheduled Pinned Locked Moved C / C++ / MFC
databasec++helpquestionannouncement
3 Posts 3 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.
  • B Offline
    B Offline
    Bravoone_2006
    wrote on last edited by
    #1

    My aplication : CDialog i have this error: "error retrieving record" ! my column type ->Numeric,were i try to replace ; this is my code : CWaitCursor wait; // Display a wait cursor CText pTextp; CString sTemp,sTemp1,sTemp2,sTip1,sTip2,sConturi1,sConturi2,sTest1,sAnul1, sLuna,sLuna1,sZiua1,sData,sSoldCr; m_1.GetWindowText(pTextp.sText4); pTextp.sText4.TrimLeft(); pTextp.sText4.TrimRight(); m_2.GetWindowText(pTextp.sText3); pTextp.sText3.TrimLeft(); pTextp.sText3.TrimRight(); CRecord_test pBun; pBun.m_strFilter="password="+ pTextp.sText3; pBun.m_strFilter="name="+ pTextp.sText4; CString sQL; CString sTimp = "ooo"; pBun.Open(CRecord_test::snapshot); int nIndexA = pBun.m_password.Find(pTextp.sText3); int nIndexB = pBun.m_name.Find(pTextp.sText4); if ((nIndexA != -1) & (nIndexB != -1)) { pBun.Close(); CString sQL; sQL = ("SELECT * FROM [password]"); pBun.Open(CRecord_test::snapshot,sQL); pBun.Edit(); pBun.m_accesstype = "fff"; pBun.Update(); pBun.Close(); } yes CRecordset !Class What can i do? error retrieving record ! What do you want?!!!!!!!!!!!!now!!!! i remind you m_accesstype : Numeric,m_password,m_name Numeric CText -> CFile!!!! Database VisualFoxpro 6.0

    Bravoone

    D H 2 Replies Last reply
    0
    • B Bravoone_2006

      My aplication : CDialog i have this error: "error retrieving record" ! my column type ->Numeric,were i try to replace ; this is my code : CWaitCursor wait; // Display a wait cursor CText pTextp; CString sTemp,sTemp1,sTemp2,sTip1,sTip2,sConturi1,sConturi2,sTest1,sAnul1, sLuna,sLuna1,sZiua1,sData,sSoldCr; m_1.GetWindowText(pTextp.sText4); pTextp.sText4.TrimLeft(); pTextp.sText4.TrimRight(); m_2.GetWindowText(pTextp.sText3); pTextp.sText3.TrimLeft(); pTextp.sText3.TrimRight(); CRecord_test pBun; pBun.m_strFilter="password="+ pTextp.sText3; pBun.m_strFilter="name="+ pTextp.sText4; CString sQL; CString sTimp = "ooo"; pBun.Open(CRecord_test::snapshot); int nIndexA = pBun.m_password.Find(pTextp.sText3); int nIndexB = pBun.m_name.Find(pTextp.sText4); if ((nIndexA != -1) & (nIndexB != -1)) { pBun.Close(); CString sQL; sQL = ("SELECT * FROM [password]"); pBun.Open(CRecord_test::snapshot,sQL); pBun.Edit(); pBun.m_accesstype = "fff"; pBun.Update(); pBun.Close(); } yes CRecordset !Class What can i do? error retrieving record ! What do you want?!!!!!!!!!!!!now!!!! i remind you m_accesstype : Numeric,m_password,m_name Numeric CText -> CFile!!!! Database VisualFoxpro 6.0

      Bravoone

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Bravoone_2006 wrote:

      i have this error: "error retrieving record" !

      From where? Is it in a message box, the debug window, or from someplace else?

      Bravoone_2006 wrote:

      pBun.m_strFilter="password="+ pTextp.sText3; pBun.m_strFilter="name="+ pTextp.sText4;

      Is this intentional?


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      1 Reply Last reply
      0
      • B Bravoone_2006

        My aplication : CDialog i have this error: "error retrieving record" ! my column type ->Numeric,were i try to replace ; this is my code : CWaitCursor wait; // Display a wait cursor CText pTextp; CString sTemp,sTemp1,sTemp2,sTip1,sTip2,sConturi1,sConturi2,sTest1,sAnul1, sLuna,sLuna1,sZiua1,sData,sSoldCr; m_1.GetWindowText(pTextp.sText4); pTextp.sText4.TrimLeft(); pTextp.sText4.TrimRight(); m_2.GetWindowText(pTextp.sText3); pTextp.sText3.TrimLeft(); pTextp.sText3.TrimRight(); CRecord_test pBun; pBun.m_strFilter="password="+ pTextp.sText3; pBun.m_strFilter="name="+ pTextp.sText4; CString sQL; CString sTimp = "ooo"; pBun.Open(CRecord_test::snapshot); int nIndexA = pBun.m_password.Find(pTextp.sText3); int nIndexB = pBun.m_name.Find(pTextp.sText4); if ((nIndexA != -1) & (nIndexB != -1)) { pBun.Close(); CString sQL; sQL = ("SELECT * FROM [password]"); pBun.Open(CRecord_test::snapshot,sQL); pBun.Edit(); pBun.m_accesstype = "fff"; pBun.Update(); pBun.Close(); } yes CRecordset !Class What can i do? error retrieving record ! What do you want?!!!!!!!!!!!!now!!!! i remind you m_accesstype : Numeric,m_password,m_name Numeric CText -> CFile!!!! Database VisualFoxpro 6.0

        Bravoone

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Its runtime error?


        WhiteSky


        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