Discussion Locked

recordset cannot movenext on vb6's prog

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

An Error:run-time error 2147217842(80040e4e)
Operation was canceled, is occur. when recordset.movenext is run. From the information i searched, error is occur when data is unable to bind with ADODC. How can I solve this problem? :)

5 replies

by spankil

Hi

According to MSDN
"PRB: Datacombo Returns -2147217848 (80040e4e) Change Canceled"

It Says that
this type of problem occus when your Data Type Has been Changed. i.e. If you bind a Control to a Numeric field and when you are at EOF the move next will give you a Null Value So Data Type Changes from numeric to Null and this will produce the Error. The Work around of this given by MSDN is as Follows

if you Find out a Diffrent Data Type then Just Cancel the DataSource of ADODC using
adodc1.Recordset.Cancel

Move the Record set to 0

adodc1.Recordset.Move 0

Hope this will help u

Bye.

This discussion is closed to new replies.