During my import I transfertext all my data into [Table1] that has a [ID] field that I have indexed with "NO" duplicates. If the user trys to import the text file a second time that get the error message "Microsoft Access was unable to append all the data to the table. The contents of 0 records(s) were deleted, and 10 records(s) was lost due to key violations....."
If I add Docmd.Setwarings False the above error message does not show and gives the user the impression that they just imported the file again.
I would like to create a custom error message for this instead of showing the user the above error message.
I found and article on MS Knowledge base (Q197596) that bascially tells me what i already know.
Is there a way to trap this import error?
Thanks for any help!
MD
If I add Docmd.Setwarings False the above error message does not show and gives the user the impression that they just imported the file again.
I would like to create a custom error message for this instead of showing the user the above error message.
I found and article on MS Knowledge base (Q197596) that bascially tells me what i already know.
Is there a way to trap this import error?
Thanks for any help!
MD