PDA

Click to See Complete Forum and Search --> : Run-time error 80040e21


harjeen
Jul 7th, 2000, 09:25 AM
I've noticed that when I click quickly through a DataGrid in my application, I get run-time error 80040e21 and the program crashes.

One cause for this error, suggested by MSDN, is that a data request is being made before the previous fetch has returned. Therefore, in the RowColClick event of the DataGrid, I put in the following code (as a delay), but still to no avail:

-----
Do while recordset.state = (adStateOpen Or adStateFetching)
Loop
-----

For some reason, this error only occurs on client machines and not in the development environment.

Any suggestions?

Thanks in advance,

Nahid