Heatshiver
Registered User.
- Local time
- Today, 09:13
- Joined
- Dec 23, 2011
- Messages
- 263
I have the following code for importing and appending table data:
The code works perfectly. It gives the error that I am trying to create duplicate index fields, and then create an "ImportErrors" table; which is completely correct as far as how it is working.
I would like to ignore/suppress the 31550 Error it gives after importing the table data. I have tried several solutions, including naming a Const and making that the error number, then adding Response = acDataErrContinue in the Sub Form_Error without success. How do I do this?
I can create code to delete the table it creates, but I may want that for my own purposes later down the road.
Code:
Application.ImportXML _
DataSource:="c:\TEST.xml", _
ImportOptions:=acAppendData
The code works perfectly. It gives the error that I am trying to create duplicate index fields, and then create an "ImportErrors" table; which is completely correct as far as how it is working.
I would like to ignore/suppress the 31550 Error it gives after importing the table data. I have tried several solutions, including naming a Const and making that the error number, then adding Response = acDataErrContinue in the Sub Form_Error without success. How do I do this?
I can create code to delete the table it creates, but I may want that for my own purposes later down the road.