+ Reply to Thread
Results 1 to 1 of 1

Thread: Excel VBA - retrieve Sybase TEXT data type

  1. #1
    Registered User
    Join Date
    05-20-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    1

    Excel VBA - retrieve Sybase TEXT data type

    Hi everyone,

    I’m having a problem with TEXT Data Type in Sybase. (TEXT is used to store “REMARKS” which may be very long)

    I have this TEST1 table for testing:
    create table TEST1 (
    	DATE	datetime,
    	REMARKS 	text
    )
    (1) I am able to insert some string into the “REMARKS” field but not retrieve it using "select"(Please refer to attached).
    The button only attempt to display the “REMARKS” and “DATE” in “TEST1” which already has some records.
    ? Runtime error at the following line: ODBC--Call failed!
    MsgBox "Test record: " & rstRtn("REMARKS") & " - " & rstRtn("DATE"), vbInformation + vbOKOnly, "Testing"
    Any ideas how to overcome this?

    (2) I am able to insert each profile name into a single line into the “REMARKS” filed.
    However, retrieving the profile names line by line (to write to different rows in Excel spreadsheet) is going to be tough (Only after (1), is answered and I am able to get rstRtn("REMARKS"), of course :D).
    Any ideas?

    Thanks for any help
    Attached Files Attached Files
    Last edited by lovely_idiot; 05-21-2010 at 03:38 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0