Are you using a form for input? If so, you should be able to trap the error
in the form's error event.
I'm not sure of the error number, but if you deliberately enter a duplicate
in the form, you can get the error number from the form event.
SAMPLE Code follows
Private Sub Form_Error(DataErr As Integer, Response As Integer)
'Use this to discover the error number and then comment it out
MsgBox DataErr,, "This is the error number you need"
'Add this after you know the error number
IF DataErr = << The number you've found>> Then
MsgBox "Bin in use"
Response = acDataErrContinue
Else
response = acDataErrDisplay
end if
End Sub
> Excellent :)
>
[quoted text clipped - 38 lines]
>>>
>>> Rob
RFJ - 20 Apr 2006 17:38 GMT
Right second time which is good for me <BG>
Tx for the help - much appreciated
> Are you using a form for input? If so, you should be able to trap the
> error in the form's error event.
[quoted text clipped - 60 lines]
>>>>
>>>> Rob