If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Variable length fields and OLE DB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-27-03, 13:01
everpat everpat is offline
Registered User
 
Join Date: Aug 2003
Location: Apopka, FL
Posts: 6
Variable length fields and OLE DB

I am using a VB program to, among other things, display and edit fields on an AS400 database. I am using IBM's AS400 OLE DB Provider and ADO 2.8.

All the fields update fine except for one field for in which Comment memos are stored. On the AS400, this field is of type VARLEN, a variable length field. When I try to update a change made to this field, I get the following error:

Run-time error '-2147467259 (80004005)':

CWBZZ5014 Value of parameter DMMEMO could not be converted to the host data type.

My question is, does anyone know how to deal with updating variable length fields using VB? Is there some special code that can do this? I have not been able to find any information on this. I tried installing the latest Service Packs for IBM iSeries Access, but this did not fix my problem.

Any help would be appreciated. Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On