hansu
Programmer
- Mar 12, 2002
- 89
I use the following code to delete a record from the recordset rstOrders.
rstOrders contains just one record. The record is taken from an Access DB.
Cursor type is adOpenStatic, adLockOptimistic.
The code works fine on the developing machine. On the client machine it generates the error
"Multiple-Step Operation Generated Errors. Check Each Status Value". If the update method
is called on rstOrders before delete, then it runs without error.
Is it necessary to make a move after delete?
Thanks for your help.
rstOrders contains just one record. The record is taken from an Access DB.
Cursor type is adOpenStatic, adLockOptimistic.
Code:
Private Sub cmdDelete_Click()
Dim intAnswer As Integer
On Error GoTo DeleteErr
intAnswer = MsgBox("Do you really want to delete this order?", vbYesNo + vbQuestion, "Delete order")
If intAnswer = vbNo Then
Exit Sub
Else
With rstOrders
.Delete
End With
End If
Unload Me
Exit Sub
DeleteErr:
MsgBox Err.Description
End Sub
"Multiple-Step Operation Generated Errors. Check Each Status Value". If the update method
is called on rstOrders before delete, then it runs without error.
Is it necessary to make a move after delete?
Thanks for your help.