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 > Access Modules daovba ado > ADO and Large V...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1496 of 1609
Post > Topic >>

ADO and Large Varchar truncated to 255 chars

by =?Utf-8?B?VGlt?= <Tim@[EMAIL PROTECTED] > Jun 16, 2008 at 05:58 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
 




 4 Posts in Topic:
ADO and Large Varchar truncated to 255 chars
=?Utf-8?B?VGlt?= <Tim@  2008-06-16 17:58:01 
Re: ADO and Large Varchar truncated to 255 chars
Stefan Hoffmann <stefa  2008-06-17 11:40:04 
Re: ADO and Large Varchar truncated to 255 chars
"Douglas J. Steele&q  2008-06-17 09:15:49 
Re: ADO and Large Varchar truncated to 255 chars
"Ed Adamthwaite"  2008-06-27 15:55:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Nov 21 10:50:17 CST 2008.