Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2000, 01:06 PM
N/A
Guest
 
Posts: n/a
Default Error Creating Cursor Handle

Why is happening this error in my application:

Alex.EXE raised excpetion class enoresult set with message Error Creating Cursor Handle

How can I correct this error?


Thanks since now

Heros
Reply With Quote
  #2  
Old 09-28-2000, 01:59 PM
N/A
Guest
 
Posts: n/a
Default RE: Error Creating Cursor Handle

Reading the help file for D5 I found this:

ENoResultSet is the exception class for unsuccessful attempts to open a dataset query.

Unit-dbtables

Description:
ENoResultSet is raised by TQuery when an attempt is made to open the query without a SELECT statement.

I would guess that you either called Query1.Open or set Query1.active to true when the statement you used in the Query1.SQL property was empty or will not return a live result set (INSERT, DELETE, UPDATE). Use Query1.ExecSQL; instead of Query1.Open or Query1.Activate.
Reply With Quote
  #3  
Old 03-30-2004, 05:14 AM
rage_against rage_against is offline
Junior Member
 
Join Date: Mar 2004
Posts: 23
Default RE: Error Creating Cursor Handle

In my program worked..
the error was caused by the "first" an "next"
so I type before "query1.SQL.text:='select * from doc_tur';".

try.....

"They kill Kenny!!"
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:03 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.