What-ho,
here's a section of some code I've written inside a timer event;
rs.Open sql, DB, adOpenDynamic, adLockReadOnly
If Not (rs.EOF And rs.BOF) Then
rs.MoveLast
Nothing too complicated going on; I open a recordset based on some arbitrary SQL, check that the recordset actually contains data and, if it does, move to the last record returned.
However, when I run this, I get the following error;
Run-time error '-2147217884 (80040e24)':
Rowset does not support fetching backward.
The problem stems from the fact that, although EOF and BOF are both true for this recordset, VB blunders on through the IF statement and starts executing the code within it anyway.
Has anyone got any idea at all why this is happening to me? This is currently top of my all time most stupid things VB has ever done to me.
Any help at all will be much appreciated,
thanks,
Paul
here's a section of some code I've written inside a timer event;
rs.Open sql, DB, adOpenDynamic, adLockReadOnly
If Not (rs.EOF And rs.BOF) Then
rs.MoveLast
Nothing too complicated going on; I open a recordset based on some arbitrary SQL, check that the recordset actually contains data and, if it does, move to the last record returned.
However, when I run this, I get the following error;
Run-time error '-2147217884 (80040e24)':
Rowset does not support fetching backward.
The problem stems from the fact that, although EOF and BOF are both true for this recordset, VB blunders on through the IF statement and starts executing the code within it anyway.
Has anyone got any idea at all why this is happening to me? This is currently top of my all time most stupid things VB has ever done to me.
Any help at all will be much appreciated,
thanks,
Paul