ACC2002: Error Message: Operation Not Supported in Transactions (295229)
The information in this article applies to:
This article was previously published under Q295229 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
If you set the Cancel argument equal to True in the Form_Delete event of a subform, the link to any related subform control is broken. If you then try to move to another record within the subform, you may receive the following error message:
Operation not supported in transactions.
RESOLUTION
To work around this behavior, instead of using the Form_Delete event to customize how records are deleted, use the Form_BeforeDelConfirm event. To see an example of how to do this, use the following steps to resolve the problem that is described in the "Steps to Reproduce the Behavior" section later in this article.
- Comment out all lines of code within the Form_Delete event procedure, or delete the Form_Delete event procedure from the module of the form.
- Copy and paste the following code into the module of the form:
Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As Integer)
'Message box to prompt for confirmation cancelling delete operation
If MsgBox("Delete current record ?", vbExclamation + vbOKCancel) = vbCancel Then
Cancel = True
End If
'Enables Microsoft Access to delete records without prompting the user.
Response = acDataErrContinue
End Sub
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 9/26/2003 |
---|
Keywords: | kbbug kberrmsg kbpending KB295229 |
---|
|