为什么删除不掉第一行?急!
DataGrid1一开始是没有任何记录的,此时有系统的第一行空白
我添加3条记录,从最后一行删除,可是到第一行时就出错了
"Requested operation requires a current record"
代码如下:
On Error GoTo DeleteErr
With Ado_detail.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
DataGrid1.Refresh
Exit Sub
DeleteErr:
MsgBox Err.Description