trap the error and look at the help files indicated for the error
Code:
try{
....dao operations here
}
catch( CDaoException* e )
{
int iErrorCount = e->GetErrorCount();
CString sMsg;
CString sFullMsg;
for( int i = 0; i < iErrorCount; i++
{
e->GetErrorInfo( i );
sMsg.Format("Error code %d\nSource %s\nDescription %s\nHelpFile %s\nHelp Context %d",
e->m_pErrorInfo->m_lErrorCode, e->m_pErrorInfo->m_strSource, e->m_pErrorCode->m_strDescription, ...m_strHelpFile, m_lHelpContext);
sFullMsg += sMsg;
sFullMsg += "\n";
}
MessageBox( sFullMsg );
}
Usually the associated help files jeterr...hlp have some pretty direct causes and I am able to fix my program from there...