Solved

rdoAccess

Posted on 1998-07-03
4
292 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
  • 3
4 Comments
 

Author Comment

by:Coates
Comment Utility
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
Comment Utility
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 50 total points
Comment Utility
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
Comment Utility
Thanks, that worked fine.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now