调试时,book属性下有四个值,分别是:book(0),book(1),book(2),book(3)。它们分别代表什么意思?

解决方案 »

  1.   

    记录集中书签可以设置多个,它们分别代表一条记录在记录集中的位置。
    --------------------------------
    Book Property
             Sets or returns a book that uniquely identifies the current record in a Recordset object.Settings and Return ValuesThe setting or return value is a string expression or variant expression that evaluates to a valid book. The data type is a Variant array of Byte data.ResFor a Recordset object based entirely on Microsoft Jet tables, the value of the Bookable property is True, and you can use the Book property with that Recordset. Other database products may not support books, however. For example, you can't use books in any Recordset object based on a linked Paradox table that has no primary key.When you create or open a Recordset object, each of its records already has a unique book. You can save the book for the current record by assigning the value of the Book property to a variable. To quickly return to that record at any time after moving to a different record, set the Recordset object's Book property to the value of that variable.There is no limit to the number of books you can establish. To create a book for a record other than the current record, move to the desired record and assign the value of the Book property to a String variable that identifies the record.To make sure the Recordset object supports books, check the value of its Bookable property before you use the Book property. If the Bookable property is False, the Recordset object doesn't support books, and using the Book property results in a trappable error.If you use the Clone method to create a copy of a Recordset object, the Book property settings for the original and the duplicate Recordset objects are identical and can be used interchangeably. However, you can't use books from different Recordset objects interchangeably, even if they were created by using the same object or the same SQL statement.If you set the Book property to a value that represents a deleted record, a trappable error occurs.The value of the Book property isn't the same as a record number.