void CADlg::OnButton1()
{
// TODO: Add your control notification handler code here
CADta OA; // this is the new class that i create that is connected to
//DSN "C"
OA.Open();
OA.Requery();
while(OA.IsEOF())
{
OA.Delete()
OA.MoveNext();
}
OA.close();
}
my problem is when i delete all, it doesn't delete all the records in the fields, It sends a messagebox that says multiple rows been deleted. the database contained 3 desame name in a 3 row. ex:
method delete - Deletes the current record from the recordset. You must explicitly scroll to another record after the deletion.
If you want to delete all the rows, you should delete them one by one.