+ Reply to Thread
Results 1 to 2 of 2

Issue trying to retrieve records from excel database

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

    Issue trying to retrieve records from excel database

    Hi,
    I'm trying to perform a complex query using ado on excel worksheets. The query is something like this:
    Please Login or Register  to view this content.
    The tblCustomerSection$,tblFisSection$ and tblScfBusinessUnit$ are worksheets. I run the query like this -> rs.Open sqlQuery, conn, adOpenStatic, adLockOptimistic, adCmdText.
    But get the following error "The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data"
    Any ideas?
    Thanks.

  2. #2
    Registered User
    Join Date
    02-20-2007
    Posts
    13
    Have narrowed this down to a problem with the "[tblCustomerSection$.ChangeRequestTitle]" field. The query would work if I did the following:
    Please Login or Register  to view this content.
    But when I add in the extra "[tblCustomerSection$.ChangeRequestTitle]" field I get the error I received above. Any ideas about why this could happen with excel fields? It's just a select statement. I can't figure out whether it's an ado problem or an excel field spreadsheet problem. If noone can answer what other options can I use apart from ado for adding,updating spreadsheets?
    Thanks.

+ 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