Hi all,
I encountered the following problem. Code looks ok but and no errors when I compile. But when I activate the function an error is generated saying that attempt to update or delete failed. The code is as follows:
Timing1 = CTime::GetCurrentTime();
if( m_pCapturedResults.IsOpen() == FALSE )
{
m_pCapturedResults.Open();
}
m_pCapturedResults.MoveFirst();
m_pCapturedResults.Edit();
while(!m_pCapturedResults.IsEOF())
{
m_pCapturedResults.m_Time_Started =
Timing1.Format("%H:%M:%S"
m_pCapturedResults.Update();
m_pCapturedResults.Requery();
m_pCapturedResults.MoveNext();
}
m_pCapturedResults.Close();
Please advice on this coz it seems that if I remove the while loop, the update is possible for the first record in my database but when I add the while loop, the update seems impossible even though teh first record will still be updated. Thanks
I encountered the following problem. Code looks ok but and no errors when I compile. But when I activate the function an error is generated saying that attempt to update or delete failed. The code is as follows:
Timing1 = CTime::GetCurrentTime();
if( m_pCapturedResults.IsOpen() == FALSE )
{
m_pCapturedResults.Open();
}
m_pCapturedResults.MoveFirst();
m_pCapturedResults.Edit();
while(!m_pCapturedResults.IsEOF())
{
m_pCapturedResults.m_Time_Started =
Timing1.Format("%H:%M:%S"
m_pCapturedResults.Update();
m_pCapturedResults.Requery();
m_pCapturedResults.MoveNext();
}
m_pCapturedResults.Close();
Please advice on this coz it seems that if I remove the while loop, the update is possible for the first record in my database but when I add the while loop, the update seems impossible even though teh first record will still be updated. Thanks