crazyswede Posted January 27, 2012 Share Posted January 27, 2012 i'm trying to read mdb file backwards. please help me------------------------------------------------------------------------ while(! (rs.EOF)) //READ forward <-- this part works fine{ //567Response.Write( rs("id").Value +"<br>" ) if(rs("id").Value==2515 ) break;rs.MoveNext( ) } //567 .Response.Write( "FOUND EOF<br>" ) .while(! (rs.BOF )) //READ BACKWARDS{ //567Response.Write( rs("id").Value +"<br>" ) rs.MovePrevious( ) <-------------------- this part returns -ADODB.Recordseterror '800a0c93' Operation is not allowed in this context. } //567 Link to comment Share on other sites More sharing options...
justsomeguy Posted January 27, 2012 Share Posted January 27, 2012 You need to open the recordset with a cursor type that allows forward and backward movement. http://www.w3schools.com/ado/met_rs_open.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.