Application-defined or object-defined error
Private Sub Form_Error(DataErr As Integer, Response As Integer)
MsgBox Error(DataErr)
Response = acDataErrContinue
End Sub
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Private Sub Form_Error(DataErr As Integer, Response As Integer)
MsgBox Error(DataErr)
Response = acDataErrContinue
End Sub
Private Sub Form_Error(DataErr As Integer, Response As Integer)
MsgBox Application.AccessError(DataErr)
Response = acDataErrContinue
End Sub
Private Sub Form_Error(DataErr As Integer, Response As Integer)
MsgBox Error$(DataErr)
MsgBox Application.AccessError(DataErr)
Response = acDataErrDisplay
End Sub
Keywords: KB208704, kbprogramming, kbprb, kberrmsg