"Run time error '-2147217833(8004 0e57)':Debug highlights this segment of code (I just snipped a portion here):
The field is too small to accept the amount of data you attempted to
add. Try inserting or pasting less data.
[end] [debug] [help]
Expand|Select|Wrap|Line Numbers
- strProc = "Insert into Parts (MfgPN, Manufacturer, Description)" & _
- "select distinct PurchasedPN, Manufacturer, Description " & _
- "from DBimport where PurchasedPN is not null " & _
- "and PurchasedPN not in (select MfgPN from Parts) " & _
- "group by PurchasedPN, Manufacturer, Description"
- 'insert into Parts:
- conTAGdb.Execute strProc
I have two VBA scripts that make up this user-operated process:
The first script: User is prompted to naviagate to a specially formatted file that he has prepared for import, and imports it into a DBimport temporary table.
The second script: User is prompted to assign a job number, and the script processes the DBimport table into the tables in the database.
This error is occurring in the second script, which is particularly baffling to me since my DBimport table shares the same column definitions as the columns in the target tables.
It doesn't specifically implicate one particular column here, but there are only three in this operation:
MfgPN - "text" in DBimport, "text" in Parts
Manufacturer - "text" in DBimport, "text" in Parts
Description - "text" in DBimport, "text" in Parts
How, if the data is resident in DBimport, could I throw this error doing an insert of this data into Parts?
Any help is greatly appreciated!!