Hi,
I have an append query run by a macro. To prevent all the MS Access messages appearing I have Set Warnings off
BUT
then the user does not realise the information was not appended to the table as duplicate records where encountered.
What I would like to do is trap the Key violation error and send a message to the screen indicating that the records did not append.
How do I do this?
I have an append query run by a macro. To prevent all the MS Access messages appearing I have Set Warnings off
BUT
then the user does not realise the information was not appended to the table as duplicate records where encountered.
What I would like to do is trap the Key violation error and send a message to the screen indicating that the records did not append.
How do I do this?