?
Solved

rdoAccess

Posted on 1998-07-03
4
Medium Priority
?
298 Views
Last Modified: 2008-02-01
Could any one tell me why the following code gives me this error:
"No columns were bound prior to calling SQLFetchScroll/SQLExtendedFetch"
Here is the code:
strSQL = "Select long_desc from logs where log_id = 123362"
Set .rs = .cn.OpenResultset(strSQL)
'this gives me the above error. Long_desc is a Text datatype on a remote data source
'I am trying to access the data using GetChunk, if i use "select * from logs where log_id = 123362" i do not get this error but
'long description seems to be null. i.e. GetChunk always returns no bytes.
'I am using this code to access the data.
Dim desc as string
On Error Resume Next
    Chunk = rs!long_desc.GetChunk(10)
    If Chunk > "" Then
          Desc = Desc & Chunk
          While Chunk > ""
            Chunk = rs!long_desc.GetChunk(10)
            Desc = Desc & Chunk
          Wend
    Else
        MsgBox ("field is null")
   End If
Please could anyone help?
0
Comment
Question by:Coates
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:Coates
ID: 1464892
Another error occurs when i user "Select * from logs where log_id = 123362"
When i go to use GetChunk i get the following message:
"Invalid dattime format, error in parameter 23"
??????????????????????????????????
0
 

Author Comment

by:Coates
ID: 1464893
Ive just tried merely assigning the value in the text fieldto a variable using this code.
Desc = rs!long_desc
And i got the same error: "Invalid datetime format, error in parameter 23"
What does this error mean?
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 200 total points
ID: 1464894
There have been some noted bugs in handling long text fields.  Generally thye workaround is to include one ordinary field/column, such as a long, etc. in your resultset.  One bug workaround is to include an additional column, and update it with its same value when updateing a text field, otherwise your text field does not get updated.  Try including another regular column in your resultset.  Memo fields are only accessed when called for later in your code, while processing your resultset.  They don't come down with the other columns in your resultset, only if/when accessed while processing the resultset.
0
 

Author Comment

by:Coates
ID: 1464895
Thanks, that worked fine.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question