Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   General (http://www.delphipages.com/forum/forumdisplay.php?f=2)
-   -   Error Creating Cursor Handle (http://www.delphipages.com/forum/showthread.php?t=14594)

N/A 09-28-2000 01:06 PM

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

N/A 09-28-2000 01:59 PM

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.

rage_against 03-30-2004 05:14 AM

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!!"


All times are GMT. The time now is 04:58 PM.

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