Excel VBA - retrieve Sybase TEXT data type

lovely_idiot

New Member
Joined
May 20, 2010
Messages
2
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:
Code:
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!
Code:
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?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top