+ Reply to Thread
Results 1 to 2 of 2

problem using ado to insert record into excel table

Hybrid View

  1. #1
    Registered User
    Join Date
    02-20-2007
    Posts
    13

    problem using ado to insert record into excel table

    Anyone know is there a max column width allowable in Excel 97 when using the VB6 ado connection object to insert a record in a worksheet? I have no difficulty inserting a record if the text is a small amount of data but when I try and insert a large amount in a worksheet cell using
    rs.Open "SELECT * FROM [tblCustomerSection$]", conn, adOpenStatic, adLockOptimistic, adCmdText
    rs.AddNew
    rs.Fields(0) = requestNoSubstringed
    I get the following error "Data Provider or other service returned an E_Fail status"
    I thought the max width of a cell was huge something like 65,000 but is there an issue here with cell width?
    Thanks.

  2. #2
    Forum Contributor
    Join Date
    11-16-2004
    Posts
    282

    Excel specifications and limits

    Hi Mark,

    Column width: 255 characters

    Length of cell contents (text): 32,767 characters. Only 1,024 display in a cell; all 32,767 display in the formula bar.

    Refer to 'Excel specifications and limits' help topic for more...

    Hope this helps,
    theDude

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1