Recently traced this problem: When multiple users are using an Access application I developed. A runtime error of 2501 occured in this code when the user tried to save a record:
Error occured on the DoCmd.Save command. This does not occur if only one user is in the application. Any suggestions why this is occuring?
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
'Provide the user with the option to save/undo
'changes made to the record in the form
If MsgBox("Changes have been made to this record." _
& vbCrLf & vbCrLf & "Do you want to save these changes?" _
, vbYesNo, "Changes Made...") = vbYes Then
DoCmd.Save
Else
DoCmd.RunCommand acCmdUndo
End If
End Sub
Comment