Article ID: 169956
Article Last Modified on 1/19/2007
OrderID,ProductID,UnitPrice,Quantity,Discount
99999,54,7.45,20,0.000
Option Explicit
Sub ImportOrderDetails()
On Error GoTo ImportOrderDetails_Error
DoCmd.TransferText acImportDelim, _
"Order Details Specification", _
"Order Details", "C:\My Documents\OrdDetails.txt"
Exit_ImportOrderDetails:
Exit Sub
ImportOrderDetails_Error:
MsgBox "Error Handler was invoked."
MsgBox CStr(Err) & " " & Err.Description
Resume Exit_ImportOrderDetails
End Sub
Microsoft Access was unable to append all the data to the table.
The contents of fields in 0 records(s) were deleted, and 1 record(s)
were lost due to key violations.
Keywords: kbinterop kbprb kbprogramming KB169956