That doesn't appear to be either a JET or a VBA error number, Marius.
Trappable JET errors are numbered from 2420 to 3808 (see the help file
'jeterr40.chm'). VBA uses numbers 3 to 746 (1 to 1000 are reserved, but not
all are used) and 31001 to 31037. The error number 7787 might be coming from
a data source (are you connecting to SQL Server or another database other
than JET?) or from a referenced component. Do you have any references
included other than the default Access, VBA and DAO or ADO references? Are
you using any ActiveX controls?
Sorry about the delay in getting back to you on this - I've been off-line
for the weekend. I did a search at Google on that error number, and came up
with several hits. Ironically enough, in one of the threads, back in 1999, I
was the original poster! Here's what I wrote at the time ...
Private Sub Form_Error(DataErr As Integer, Response As Integer)
' Trap for "Write Conflict" error --> number 7787
If DataErr = 7787 Then
Response = acDataErrContinue
End If
End Sub
I tested this in Access 2003. I expect the behaviour would be the same in
2000 or 2002, but I have not tested that. In Access 2003, the second user's
changes would be discarded, without warning.
I have changed some things in my code, that helped to avoid this error.
Thanks for your help.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.