ADO Bookmark Properti
Referensi Objek Recordset Lengkap
Properti Bookmark menentukan bookmark. Penanda menyimpan posisi rekaman saat ini.
Untuk menyimpan bookmark untuk rekaman saat ini, tetapkan nilai properti Bookmark ke variabel. Untuk kembali ke catatan "dibookmark", setel properti Bookmark ke nilai variabel tersebut.
Catatan: Properti Bookmark hanya tersedia di objek Recordset yang mendukung bookmark.
Sintaksis
objRecordset.Bookmark
Contoh
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("northwind.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
sql="SELECT Companyname, Contactname FROM Customers"
rs.Open sql, conn
rs.MoveFirst
'Store bookmark of the current record
bkmark=rs.Bookmark
rs.MoveLast
'Go to the bookmarked record
rs.Bookmark=bkmark
rs.Close
conn.Close
%>
Referensi Objek Recordset Lengkap