Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Destroying a TADOQuery

Status
Not open for further replies.

ionutdinulescu

Programmer
Jun 11, 2002
59
GB
I create a TADOQuery, then I navigate through it until the last record.

When I try to destroy it, a runtime error occurs: Requires a current record.

I move the pointer to the first record, then I destroy the query, and the error doesn't occur anymore.

What if I have no records in the query ?

 
Have you tried closing the TADOQuery prior to destroying it ?
Steve
 
yes, I have
If I close it before destroying it, the error occurs when closing.
 
hi,

it looks as if the Tquery is in an edit mode, or something like that.

Steph [bigglasses]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top