Hi all,
I have access database file with 2 tables,
the tables have the same columns but with different data, and I have 2 asp files that show the content of each table with paging recordset, they have the same code, but only one asp works, when I try to open the second page i got this error:
Error Type:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support bookmarks.
This may be a limitation of the provider or of the selected cursortype.
it doesn't make sense how one asp page with the same code working, and the other not, any idea wht it happend ?
the code:
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.mode = 3
FilePath = "C:\Inetpub\wwwroot\database.mdb"
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & FilePath & "; Set RS = Server.CreateObject("ADODB.Recordset") RS.CursorType = adOpenStatic RS.PageSize = 5 RS.Open "SELECT * FROM table1", Conn RS.AbsolutePage = cp rc = 0 While not RS.EOF and rc < RS.PageSize response.write RS("FirstName") & "<br>" RS.MoveNext Wend RS.Close SET RS = NOTHING Conn.close Set Conn = NOTHING
Many thanks in advance,
Yosi.
I have access database file with 2 tables,
the tables have the same columns but with different data, and I have 2 asp files that show the content of each table with paging recordset, they have the same code, but only one asp works, when I try to open the second page i got this error:
Error Type:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support bookmarks.
This may be a limitation of the provider or of the selected cursortype.
it doesn't make sense how one asp page with the same code working, and the other not, any idea wht it happend ?
the code:
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.mode = 3
FilePath = "C:\Inetpub\wwwroot\database.mdb"
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & FilePath & "; Set RS = Server.CreateObject("ADODB.Recordset") RS.CursorType = adOpenStatic RS.PageSize = 5 RS.Open "SELECT * FROM table1", Conn RS.AbsolutePage = cp rc = 0 While not RS.EOF and rc < RS.PageSize response.write RS("FirstName") & "<br>" RS.MoveNext Wend RS.Close SET RS = NOTHING Conn.close Set Conn = NOTHING
Many thanks in advance,
Yosi.