Database ( table Update/Delete)
-
I am using ODBC to acess Mysql DB .. I am using comands MoveNext(), MovePrev() ... of Recordset class .. it´s working well .. The AddNew register is working .. but when I try to use Delete function or Update function appear the follow message: No Cursos name avaliable .. To Update I am using this code: m_pSet->Edit(); m_pSet->m_id = NEW_VALUE; m_pSet->m_descricao = NEW_VALUE; m_pSet->Update(); to Delete I am using: m_pSet->Delete(); Tks
-
I am using ODBC to acess Mysql DB .. I am using comands MoveNext(), MovePrev() ... of Recordset class .. it´s working well .. The AddNew register is working .. but when I try to use Delete function or Update function appear the follow message: No Cursos name avaliable .. To Update I am using this code: m_pSet->Edit(); m_pSet->m_id = NEW_VALUE; m_pSet->m_descricao = NEW_VALUE; m_pSet->Update(); to Delete I am using: m_pSet->Delete(); Tks
Are you opening the RecordSet Connection over 'CRecordset::dynamic'???? Thanks, Ramu