If you only want to insert new records in a table - why do you need a CDaoRS class?
Pseudo-code:Code:CDaoDB db; db.dbOpen(_T("MyDB PathName.mdb")); CString strInsert = _T("Insert INTO Table1 (Field1, Field2, ...) VALUES (Val1, Val2, ..."); try { db.Execute(strInsert, dbFailOnError); } catch (CDaoException* e) { // catch the exception, get/display error code/message }





Victor Nijegorodov
Reply With Quote