ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to handle double byte data?? (https://www.excelbanter.com/excel-programming/354270-how-handle-double-byte-data.html)

ivan

How to handle double byte data??
 
Dear all,

I have an Excel macro which retrieves double data from a AS400 database
using ADO connection.

cnn.Open "Provider=IBMDA400;Data Source=myAS400Machine;", "", ""

Suppose the name of my result recordset is myRst, even when I use msgbox
to see the value in the record set (Msgbox myRst.Fields("myField"), I got the
following error:

Run-time error '-2147467259(80004005)':
Converted 24 bytes, 2 errors found beginning at offset 0

I am so frustrated by this problem. Can anyone advise how to solve it??
Thanks in advance.

Ivan





All times are GMT +1. The time now is 08:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com