Mark Lawther wrote: > The new field is defined in the OPEN DATAQUEUE statement as DEC(3,0) > (see snippets below). I now receive the error "Runtime error > '-2147217887 (80040e21) Multiple-step OLE DB operation generated > errors." Looking at the DQ's record set in VB debug, I can see the > new field contains the error. Also, the next field in the record set > is shifted left 1 byte. I have verified the DQ definition on the > AS/400 matches the VB definition. The AS/400 field is zoned, not > packed. Mark, I believe that the Decimal data type is most likely packed. To solve this, I'd either define dqEdsNo as 5.0 p or 3.0p and shift everything one down (which you could make easier on yourself by defining the lengths only and not using the from and to designators). Bill

Reply With Quote