Solved

rdoAccess

Posted on 1998-07-03
4
296 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 50 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

749 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