Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADO Data > ADO and Large V...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4250 of 4320
Post > Topic >>

ADO and Large Varchar truncated to 255 chars

by =?Utf-8?B?VGlt?= <Tim@[EMAIL PROTECTED] > Jun 16, 2008 at 05:59 PM

Hi there, 

I am trying to retrieve data from an SQL Server 2000 db. The data is 
Varchar(4000).  Using the following VBA the data gets truncated to 255
chars. 
 How do I get data from large Varchar fields using ADO?

Many thanks

Tim


    Do Until rs.EOF
        i = 0
        For Each f In rs.Fields
            Debug.Print f.Value, Len(f.Value)
            .ActiveCell.Offset(lRow + 1, i) = f.Value
            i = i + 1
        Next f
        lRow = lRow + 1
        rs.MoveNext
    Loop
 




 2 Posts in Topic:
ADO and Large Varchar truncated to 255 chars
=?Utf-8?B?VGlt?= <Tim@  2008-06-16 17:59:00 
Re: ADO and Large Varchar truncated to 255 chars
"Daniel Crichton&quo  2008-06-17 11:56:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:51:05 CST 2008.