View Single Post
  #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