OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
FORWARD_ONLY<br />
ResultSet only permits forward navigation<br />
SCROLL_INSENSITIVE<br />
ResultSet permits any type of navigation, changes to the original data are, however, not noted<br />
SCROLL_SENSITIVE<br />
ResultSet permits any type of navigation, changes to the original data impact on the ResultSet<br />
Database Access<br />
Note – VBA : A ResultSet containing the READ_ONLY and SCROLL_INSENSITIVE properties corresponds<br />
to a record set of the Snapshot type in ADO and DAO.<br />
When using the ResultSet's UPDATEABLE and SCROLL_SENSITIVE properties, the scope of function of a<br />
ResultSet is comparable with a Dynaset type Recordset from ADO and DAO.<br />
Methods for Navigation in ResultSets<br />
If a ResultSet is a SCROLL_INSENSITIVE or SCROLL_SENSITIVE type, it supports a whole range of methods<br />
for navigation in the stock of data. The central methods are:<br />
next()<br />
navigation to the next data record<br />
previous()<br />
first()<br />
last()<br />
navigation to the previous data record<br />
navigation to the first data record<br />
navigation to the last data record<br />
beforeFirst()<br />
navigation to before the first data record<br />
afterLast()<br />
navigation to after the last data record<br />
All methods return a Boolean parameter which specifies whether the navigation was successful.<br />
To determine the current cursor position, the following test methods are provided and all return a Boolean value:<br />
isBeforeFirst()<br />
ResultSet is before the first data record<br />
isAfterLast()<br />
isFirst()<br />
isLast()<br />
ResultSet is after the last data record<br />
ResultSet is the first data record<br />
ResultSet is the last data record<br />
Modifying Data Records<br />
If a ResultSet has been created with the ResultSetConcurrency = UPDATEABLE value, then its content can<br />
be edited. This only applies for as long as the SQL command allows the data to be re-written to the database<br />
Chapter 10 · Databases 149