bSuccess=Recordset.Open(source,activeConnection,cursorType,lockType,options)sourceString value that contains an SQL statement, table
name, or stored procedure.activeConnectionADODB.Connection object variable name, or
a String that contains ConnectionString
parameters. Use BuildConnectionString
xtra level method to invoke a dialog for building connection string.cursorTypeRecordset. The default value is adOpenForwardOnly.
It can be one of the following values:| Constant | Value | Description |
|---|---|---|
adOpenDynamic |
2 | Uses a dynamic cursor. Additions, changes, and deletions by other users are visible, and all types of movement through the Recordset are allowed, except for bookmarks, if the provider doesn't support them. |
adOpenForwardOnly |
0 | Default. Uses a forward-only cursor. Identical to a static cursor, except that you can only scroll forward through records. This improves performance when you need to make only one pass through a Recordset. |
adOpenKeyset |
1 | Uses a keyset cursor. Like a dynamic cursor, except that you can't see records that other users add, although records that other users delete are inaccessible from your Recordset. Data changes by other users are still visible. |
adOpenStatic |
3 | Uses a static cursor. A static copy of a set of records that you can use to find data or generate reports. Additions, changes, or deletions by other users are not visible. |
adOpenUnspecified |
-1 | Does not specify the type of cursor. |
lockTypeRecordset. The default
value is adLockReadOnly. It can be one of the following values:| Constant | Value | Description |
|---|---|---|
adLockBatchOptimistic |
4 | Indicates optimistic batch updates. Required for batch update mode. |
adLockOptimistic |
3 | Indicates optimistic locking, record by record. The provider uses optimistic locking, locking records only when you call the Update method. |
adLockPessimistic |
2 | Indicates pessimistic locking, record by record. The provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately after editing. |
adLockReadOnly |
1 | Indicates read-only records. You cannot alter the data. |
adLockUnspecified |
-1 | Does not specify a type of lock. For clones, the clone is created with the same lock type as the original. |
optionssource argument. It may be a bitmask of one or more of the
folowing constants:| Constant | Value | Description |
|---|---|---|
adAsyncExecute |
16 | Indicates that the command should execute asynchronously. |
adAsyncFetch |
32 | Indicates that the remaining rows after the initial quantity specified
in the cacheSize
property should be retrieved asynchronously. |
adAsyncFetchNonBlocking |
64 | Indicates that the main thread never blocks while retrieving. If the requested row has not been retrieved, the current row automatically moves to the end of the file. |
adExecuteNoRecords |
128 | Indicates that the command text is a command or stored procedure that does not return rows (for example, a command that only inserts data). If any rows are retrieved, they are discarded and not returned. |
adOptionUnspecified |
-1 | Indicates that the command is unspecified. |
| Constant | Value | Description |
|---|---|---|
adCmdUnspecified |
-1 | Does not specify the command type argument. |
adCmdText |
1 | Evaluates source parameter as a textual definition of
a command or stored procedure call. |
adCmdTable |
2 | Evaluates source parameter as a table name whose columns
are all returned by an internally generated SQL query. |
adCmdStoredProc |
4 | Evaluates source parameter as a stored procedure name. |
adCmdUnknown |
8 | Default. Indicates that the type of command in the source
parameter property is not known. |
IntegerTrue (1) if function completed successfully, false
(0) otherwiseOpen() method of the wrapped ADODB.Recordset
object. Using the Open method on a Recordset object
opens a cursor that represents records from a base table or the results of
a query. bSuccess=Recordset.Cancel()IntegerTrue (1) if function completed successfully, false
(0) otherwiseCancel() method of the wrapped ADODB.Recordset
object. Use the Cancel method to terminate execution of an asynchronous
Open() method call (that is, a method invoked
with the adAsyncExecute, or adAsyncFetch option).bSuccess=Recordset.Requery(options)optionsoptions parameter.IntegerTrue (1) if function completed successfully, false
(0) otherwiseRequery() method of the wrapped ADODB.Recordset
object. Use the Requery method to refresh the entire contents
of a Recordset object from the data source by reissuing the original
command and retrieving the data a second time. Calling this method is equivalent
to calling the Close and Open methods in succession.
If you are editing the current record or adding a new record, an error occurs.bSuccess=Recordset.Close()IntegerTrue (1) if function completed successfully, false
(0) otherwiseClose() method of the wrapped ADODB.Recordset
object. Use the Close method to close a Recordset
to free any associated system resources. Closing an object does not remove
it from memory; you can change its property settings and open it again later.
To completely eliminate an object from memory, set the object variable to
VOID after closing the object. Close
method generates an error; instead, call the Update
or CancelUpdate method
first. If you close the Recordset object while in batch update
mode, all changes since the last UpdateBatch
call are lost.bSuccess=Recordset.AddNew()IntegerTrue (1) if function completed successfully, false
(0) otherwiseAddNew() method of the wrapped ADODB.Recordset
object. After you call the AddNew method, the new record becomes
the current record and remains current after you call the Update
method. AddNew method, the new record becomes the
current record and remains current after you call the Update method. If the
Recordset object does not support bookmarks, you may not be able
to access the new record once you move to another record. Depending on your
cursor type, you may need to call the Requery method to make
the new record accessible. If you call AddNew while editing the current record or while
adding a new record, ADO calls the Update
method to save any changes and then creates the new record.
bSuccess=Recordset.Delete_(affectRecords) -- Note the syntax "Delete_"affectRecordsadAffectCurrent. It can be
one of the following values:| Constant | Value | Description |
|---|---|---|
adAffectAll |
3 | If there is not a Filter
applied to the Recordset, affects all records.
If the Filter property is set to a string criteria (such as "Author='Smith'"), then the operation affects visible records in the current chapter. If the Filter property is set to a member of the FilterGroupEnum, then the operation will affect all rows of the Recordset. |
adAffectAllChapters |
4 | Affects all records in all sibling chapters of the Recordset, including those not visible via any Filter that is currently applied. |
adAffectCurrent |
1 | Affects only the current record. |
adAffectGroup |
2 | Affects only records that satisfy the current Filter property setting. You must set the Filter property to a FilterGroupEnum value. |
IntegerTrue (1) if function completed successfully, false
(0) otherwiseDelete() method of the wrapped ADODB.Recordset
object. Recordset object for deletion. If the Recordset
object doesn't allow record deletion, an error occurs. If you are in immediate
update mode, deletions occur in the database immediately. If a record cannot
be successfully deleted (due to database integrity violations, for example),
the record will remain in edit mode after the call to Update.
This means that you must cancel the update with CancelUpdate
before moving off the current record (for example, with Close,
Move). UpdateBatch
method. (Use the Filter property
to view the deleted records.)RollbackTrans
method. If you are in batch update mode, you can cancel a pending deletion
or group of pending deletions with the CancelBatch
method.bSuccess=Recordset.CancelUpdate()IntegerTrue (1) if function completed successfully, false
(0) otherwiseCancelUpdate() method of the wrapped ADODB.Recordset
object. Use the CancelUpdate method to cancel any changes made
to the current row or to discard a newly added row. You cannot cancel changes
to the current row or a new row after you call the Update method.bSuccess=Recordset.Update()IntegerTrue (1) if function completed successfully, false
(0) otherwiseUpdate() method of the wrapped ADODB.Recordset
object. Use the Update method to save any changes you make to
the current record of a Recordset object since calling the AddNew
method or since changing any field values in an existing record. The Recordset
object must support updates.bSuccess=Recordset.CancelBatch(affectRecords)affectRecordsCancelBatch
method will affect. The default value is adAffectAll. See affectRecords
parameter of Delete method for
the list of acceptable values:IntegerTrue (1) if function completed successfully, false
(0) otherwiseCancelBatch() method of the wrapped ADODB.Recordset
object. Use the CancelBatch method to cancel any pending updates
in a Recordset in batch update mode. If the Recordset
is in immediate update mode, calling CancelBatch without adAffectCurrent
generates an error.bSuccess=Recordset.UpdateBatch(affectRecords)affectRecordsCancelBatch
method will affect. The default value is adAffectAll. See affectRecords
parameter of Delete method for
the list of acceptable values:IntegerTrue (1) if function completed successfully, false
(0) otherwiseUpdateBatch() method of the wrapped ADODB.Recordset
object. Use the UpdateBatch method when modifying a Recordset
object in batch update mode to transmit all changes made in a Recordset
object to the underlying database.
If the Recordset object supports batch updating, you can cache
multiple changes to one or more records locally until you call the UpdateBatch
method. If you are editing the current record or adding a new record when
you call the UpdateBatch method, ADO will automatically call
the Update method to save any
pending changes to the current record before transmitting the batched changes
to the provider. You should use batch updating with either a keyset or static
cursor only.
bSuccess=Recordset.MoveNext()IntegerTrue (1) if function completed successfully, false
(0) otherwiseMoveNext() method of the wrapped ADODB.Recordset
object. Use the MoveNext method to move the current record position
one record forward (toward the bottom of the Recordset). If the
last record is the current record and you call the MoveNext method,
ADO sets the current record to the position after the last record in the Recordset
(EOF is True). An attempt to move forward when the
EOF property is already True generates an error.
bSuccess=Recordset.MovePrevious()IntegerTrue (1) if function completed successfully, false
(0) otherwiseMovePrevious() method of the wrapped ADODB.Recordset
object. Use the MovePrevious method to move the current record
position one record backward (toward the top of the Recordset).
The Recordset object must support bookmarks or backward cursor
movement; otherwise, the method call will generate an error. If the first
record is the current record and you call the MovePrevious method,
ADO sets the current record to the position before the first record in the
Recordset (BOF is True). An attempt
to move backward when the BOF property is already True
generates an error. If the Recordset object does not support
either bookmarks or backward cursor movement, the MovePrevious
method will generate an error. bSuccess=Recordset.MoveFirst()IntegerTrue (1) if function completed successfully, false
(0) otherwiseMoveFirst() method of the wrapped ADODB.Recordset
object. Use the MoveFirst method to move the current record position
to the first record in the Recordset. bSuccess=Recordset.MoveLast()IntegerTrue (1) if function completed successfully, false
(0) otherwiseMoveLast() method of the wrapped ADODB.Recordset
object. Use the MoveLast method to move the current record position
to the last record in the Recordset. The Recordset
object must support bookmarks or backward cursor movement; otherwise, the
method call will generate an error. put Recordset.GetFieldValue(Integer fieldIndex)put Recordset.GetFieldValue(String fieldName)fieldIndexRecordset.Fields
collectionfieldNameString that identifies the field object in Recordset.Fields
collection.AnyfieldIndex or fieldNameVoidVOIDfieldIndex
or fieldName. It gets the Recordset.Fields.Item[Index].Value
of the wrapped ADODB.Recordset object. See ADOxtra
type casting topic for more details about how ADOxtra converts ADO value
to Lingo value.put Recordset.GetString(stringFormat,numRows,columnDelimiter,rowDelimiter,nullExpr)stringFormat| Constant | Value | Description |
|---|---|---|
adClipString |
2 | Delimits rows by RowDelimiter, columns by ColumnDelimiter, and null values by NullExpr. These three parameters of the GetString method are valid only with a StringFormat of adClipString. |
numRowsRecordset.
If numRows is not specified, or if it is greater than the total
number of rows in the Recordset, then all the rows in the Recordset
are converted. columnDelimiterString. Optional. A delimiter used between columns, if specified,
otherwise the TAB character. .rowDelimiterString. Optional. A delimiter used between rows, if specified,
otherwise the CARRIAGE RETURN character.nullExprString. Optional. An expression used in place of a null value,
if specified, otherwise the empty string.StringGetString() method of the wrapped ADODB.Recordset
object. Use it to get the string representation of recordset data.bSuccess=Recordset.SetFieldValue(Integer fieldIndex, Any newValue)bSuccess=Recordset.SetFieldValue(String fieldName, Any newValue)fieldIndexRecordset.Fields
collectionfieldNameString that identifies the field object in Recordset.Fields
collection.newValuefieldIndex or fieldName.IntegerTrue (1) if function completed successfully, false
(0) otherwisefieldIndex
or fieldName. It sets the Recordset.Fields.Item[Index].Value
of the wrapped ADODB.Recordset object with newValue.
See ADOxtra type
casting topic for more details about how ADOxtra converts Lingo value
to ADO value.bIsSupported=Recordset.Supports(cursorOptions)cursorOptions| Constant | Value | Description |
|---|---|---|
adAddNew |
0x1000400 | Supports the AddNew method to add new records. |
adApproxPosition |
0x4000 | Supports the AbsolutePosition and AbsolutePage properties. |
adBookmark |
0x2000 | Supports the Bookmark property to gain access to specific records. |
adDelete |
0x1000800 | Supports the Delete method to delete records. |
adFind |
0x80000 | Supports the Find method to locate a row in a Recordset. |
adHoldRecords |
0x100 | Retrieves more records or changes the next position without committing all pending changes. |
adIndex |
0x100000 | Supports the Index property to name an index. |
adMovePrevious |
0x200 | Supports the MoveFirst and MovePrevious methods, and Move or GetRows methods to move the current record position backward without requiring bookmarks. |
adNotify |
0x40000 | Indicates that the underlying data provider supports notifications (which determines whether Recordset events are supported). |
adResync |
0x20000 | Supports the Resync method to update the cursor with the data that is visible in the underlying database. |
adSeek |
0x200000 | Supports the Seek method to locate a row in a Recordset. |
adUpdate |
0x1008000 | Supports the Update method to modify existing data. |
adUpdateBatch |
0x10000 | Supports batch updating (UpdateBatch and CancelBatch methods) to transmit groups of changes to the provider. |
BooleancursorOptions
argument are supported by the provider.Supports() method of the wrapped ADODB.Recordset
object. Use the Supports method to determine what types of functionality
a Recordset object supports. If the Recordset object
supports the features whose corresponding constants are in cursorOptions,
the Supports method returns True. Otherwise, it
returns False.
val=Recordset.Fields[fieldIndex]Recordset.Fields[fieldIndex]=newValfieldsCount=Recordset.Fields.CountfieldIndexString field name or Integer zero based index
of the field object in Recordset.Fields collectionAnyValue property of the field objects in
Fields collection of the wrapped ADODB.Recordset
object.put rst.fields["Id"] & ":" && rst.fields["Name"]rst.fields["Name"]="NewName"objADOField=Recordset.Fields[fieldIndex].reffieldName=Recordset.Fields[fieldIndex].NamefieldName=objADOField.Nameval=objADOField.ValueobjADOField.Value=newValfieldIndexString field name or Integer zero based index
of the field object in Recordset.Fields collectionObjectADODB.Field objectField objects of the Fields
collection of the wrapped ADODB.Recordset object. Each Field
object corresponds to a column in the Recordset. Calling this
function creates new Lingo object
that serves as ADODB.Field wrapper.on ShowCurrentRecord rst
repeat with i = 0 to rst.Fields.Count - 1
put rst.Fields[i].Name & "=" & rst.Fields[i]
end repeat
endval=Recordset.Properties[propertyIndex]Recordset.Properties[propertyIndex]=newValpropertiesCount=Recordset.Properties.CountpropertyIndexString property name or Integer zero based index
of the property object in Recordset.Properties collectionAnyValue property of the property objects
in Properties collection of the wrapped ADODB.Recordset
object. Each Property
object corresponds to a characteristic of the ADODB.Recordset
object specific to the provider. on ShowProperties ref
repeat with i= 0 to ref.Properties.Count - 1
put ref.Properties[i].Name & "="
& ref.Properties[i]
end repeat
end
objADOProperty=Recordset.Properties[propertyIndex].refpropertyName=objADOProperty.Nameval=objADOProperty.ValueobjADOProperty.Value=newValpropertiesCount=Recordset.Properties.CountpropertyName=Recordset.Properties[propertyIndex].NamepropertyType=Recordset.Properties[propertyIndex].TypepropertyValue=Recordset.Properties[propertyIndex].ValuepropertyAttributes=Recordset.Properties[propertyIndex].Attributes on ShowProperties ref
repeat with i= 0 to ref.Properties.Count - 1
put ref.Properties[i].Name & "="
& ref.Properties[i]
end repeat
end
propertyIndexString property name or Integer zero based index
of the property object in Recordset.Properties collectionObjectADODB.Property objectProperty objects of the Properties
collection of the wrapped ADODB.Recordset object. Each Property
object corresponds to a characteristic of the ADODB.Recordset
object specific to the provider.put Recordset.StateIntegerRecordset object. It
may be a bitmask of following values:| Constant | Value | Description |
|---|---|---|
rst.adStateClosed |
0 | Indicates that the object is closed. |
rst.adStateOpen |
1 | Indicates that the object is open. |
rst.adStateConnecting |
2 | Indicates that the object is connecting. |
rst.adStateExecuting |
4 | Indicates that the object is executing a command. |
rst.adStateFetching |
8 | Indicates that the rows of the object are being retrieved. |
state property of the wrapped ADODB.Recordset
object. Indicates whether the state of the object is open or closed. put Recordset.SourceRecordset.Source="SELECT * FROM Authors"StringRecordset object.Source property of the wrapped ADODB.Recordset
object. Use the Source property to specify a data source for
a Recordset object using one of the following: an SQL statement,
a stored procedure, or a table name.Recordset.ActiveConnection="DRIVER={Microsoft Access Driver (*.mdb)};DBQ=demoDb.mdb"Recordset.ActiveConnection=objConnectionput Recordset.ActiveConnectionObjectADODB.Connection object that is the current
Connection object of the recordset.Symbol #NullStringADODB.Connection object using this definition and opens
the connection. Use BuildConnectionString
xtra level method to invoke a dialog for building connection string.ObjectADODB.Connection object. Use CreateObject(xtra"ADOxtra",#Connection)
to create such object.Symbol #NullcursorLocation
is set to adUseClient.ActiveConnection property of the wrapped ADODB.Recordset
object. Use the ActiveConnection property to determine the Connection
object over which the specified Recordset will be opened.put Recordset.CursorTypeRecordset.CursorType=1Recordset.CursorType=Recordset.adOpenForwardOnlyRecordset.CursorType=Recordset.adOpenDynamicRecordset.CursorType=Recordset.adOpenKeysetRecordset.CursorType=Recordset.adOpenStaticIntegerRecordset
object. See Open() method for details about
cursorType parameter and a list of possible values.CursorType property of the wrapped ADODB.Recordset
object. Use the CursorType property to specify the type of cursor
that should be used when opening the Recordset object. ADOxtra
provides following constants:put Recordset.LockTypeRecordset.LockType=1Recordset.LockType=Recordset.adLockReadOnlyRecordset.LockType=Recordset.adLockPessimisticRecordset.LockType=Recordset.adLockOptimisticRecordset.LockType=Recordset.adLockBatchOptimisticIntegercursorType
parameter and a list of possible values. LockType property of the wrapped ADODB.Recordset
object. Set the LockType property before opening a Recordset
to specify what type of locking the provider should use when opening it. Read
the property to return the type of locking in use on an open Recordset
object. The LockType property is read/write when the Recordset
is closed and read-only when it is open. ADOxtra provides following constants:put Recordset.CursorLocationRecordset.CursorLocation=Recordset.adUseServerRecordset.CursorLocation=Recordset.adUseClientInteger| Constant | Value | Description |
|---|---|---|
| rst.adUseClient | 3 | Uses client-side cursors supplied by a local cursor library. Local cursor services often will allow many features that driver-supplied cursors may not, so using this setting may provide an advantage with respect to features that will be enabled. For backward compatibility, the synonym adUseClientBatch is also supported. |
| rst.adUseServer | 2 | Default. Uses data-provider or driver-supplied cursors. These cursors are sometimes very flexible and allow for additional sensitivity to changes others make to the data source. |
CursorLocation property of the wrapped ADODB.Recordset
object. This property allows you to choose between various cursor libraries
accessible to the provider. Usually, you can choose between using a client-side
cursor library or one that is located on the server. Recordset objects will
automatically inherit this setting from their associated connections. put Recordset.MarshalOptionsRecordset.MarshalOptions=Recordset.adMarshalAllRecordset.MarshalOptions=Recordset.adMarshalModifiedOnlyInteger| Constant | Value | Description |
|---|---|---|
adMarshalAll |
0 | Default. Returns all rows to the server. |
adMarshalModifiedOnly |
1 | Returns only modified rows to the server. |
MarshalOptions property of the wrapped ADODB.Recordset
object. When using a client-side Recordset, records that have been modified
on the client are written back to the middle tier or Web server through a
technique called marshaling, the process of packaging and sending interface
method parameters across thread or process boundaries. Setting the MarshalOptions
property can improve performance when modified remote data is marshaled for
updating back to the middle tier or Web server. put Recordset.EOFInteger (1 or 0)EOF property of the wrapped ADODB.Recordset
object. Use the BOF and EOF properties to determine
whether a Recordset object contains records or whether you've
gone beyond the limits of a Recordset object when you move from
record to record. The EOF property returns True
(1) if the current record position is after the last record and False
(0) if the current record position is on or before the last record. If either
the BOF or EOF property is True, there
is no current record. put Recordset.BOFInteger (1 or 0)BOF property of the wrapped ADODB.Recordset
object. Use the BOF and EOF properties to determine
whether a Recordset object contains records or whether you've
gone beyond the limits of a Recordset object when you move from
record to record. The BOF property returns True
(1) if the current record position is before the first record and False
(0) if the current record position is on or after the first record. If either
the BOF or EOF property is True, there
is no current record. put Recordset.EditModeInteger| Constant | Value | Description |
|---|---|---|
adEditNone |
0 | Indicates that no editing operation is in progress. |
adEditInProgress |
1 | Indicates that data in the current record has been modified but not saved. |
adEditAdd |
2 | Indicates that the AddNew method has been called, and the current record in the copy buffer is a new record that has not been saved in the database. |
adEditDelete |
4 | Indicates that the current record has been deleted. |
EditMode property of the wrapped ADODB.Recordset
object. ADO maintains an editing buffer associated with the current record.
This property indicates whether changes have been made to this buffer, or
whether a new record has been created. Use the EditMode property
to determine the editing status of the current record. ADOxtra provides following
constants:put Recordset.StatusInteger| Constant | Value | Description |
|---|---|---|
adRecCanceled |
0x100 | Indicates that the record was not saved because the operation was canceled. |
adRecCantRelease |
0x400 | Indicates that the new record was not saved because the existing record was locked. |
adRecConcurrencyViolation |
0x800 | Indicates that the record was not saved because optimistic concurrency was in use. |
adRecDBDeleted |
0x40000 | Indicates that the record has already been deleted from the data source. |
adRecDeleted |
0x4 | Indicates that the record was deleted. |
adRecIntegrityViolation |
0x1000 | Indicates that the record was not saved because the user violated integrity constraints. |
adRecInvalid |
0x10 | Indicates that the record was not saved because its bookmark is invalid. |
adRecMaxChangesExceeded |
0x2000 | Indicates that the record was not saved because there were too many pending changes. |
adRecModified |
0x2 | Indicates that the record was modified. |
adRecMultipleChanges |
0x40 | Indicates that the record was not saved because it would have affected multiple records. |
adRecNew |
0x1 | Indicates that the record is new. |
adRecObjectOpen |
0x4000 | Indicates that the record was not saved because of a conflict with an open storage object. |
adRecOK |
0 | Indicates that the record was successfully updated. |
adRecOutOfMemory |
0x8000 | Indicates that the record was not saved because the computer has run out of memory. |
adRecPendingChanges |
0x80 | Indicates that the record was not saved because it refers to a pending insert. |
adRecPermissionDenied |
0x10000 | Indicates that the record was not saved because the user has insufficient permissions. |
adRecSchemaViolation |
0x20000 | Indicates that the record was not saved because it violates the structure of the underlying database. |
adRecUnmodified |
0x8 | Indicates that the record was not modified. |
EditMode property of the wrapped ADODB.Recordset
object. Use the Status property to see what changes are pending
for records modified during batch updating. You can also use the Status
property to view the status of records that fail during bulk operations, such
as when you call the Resync, UpdateBatch,
or CancelBatch methods on
a Recordset object. With this property, you can determine how
a given record failed and resolve it accordingly.put Recordset.RecordCountIntegerRecordset object. RecordCount property of the wrapped ADODB.Recordset
object. Use the RecordCount property to find out how many records
are in a Recordset object. The property returns -1 when ADO cannot
determine the number of records or if the provider or cursor type does not
support RecordCount. Reading the RecordCount property
on a closed Recordset causes an error. put Recordset.PageCountIntegerRecordset object contains.
PageCount property of the wrapped ADODB.Recordset
object. Use the PageCount property to determine how many pages
of data are in the Recordset object. Pages are groups of records
whose size equals the PageSize
property setting. Even if the last page is incomplete because there are fewer
records than the PageSize value, it counts as an additional page
in the PageCount value. If the Recordset object
does not support this property, the value will be -1 to indicate that the
PageCount is indeterminable. See the PageSize
and AbsolutePage properties
for more on page functionality.put Recordset.PageSizeRecordset.PageSize=10IntegerRecordset.PageSize property of the wrapped ADODB.Recordset
object. Use the PageSize property to determine how many records
make up a logical page of data. Establishing a page size allows you to use
the AbsolutePage property
to move to the first record of a particular page.put Recordset.AbsolutePageRecordset.AbsolutePage=5Integer| Constant | Value | Description |
|---|---|---|
| adPosBOF | -2 | Indicates that the current record pointer is at BOF (that
is, the BOF property is True). |
| adPosEOF | -3 | Indicates that the current record pointer is at EOF (that
is, the EOF property is True). |
| adPosUnknown | -1 | Indicates that the Recordset is empty, the current position
is unknown, or the provider does not support the AbsolutePage
or AbsolutePosition property. |
IntegerAbsolutePage property of the wrapped ADODB.Recordset
object. Use the AbsolutePage property to identify the page number
on which the current record is located. Use the PageSize
property to logically divide the Recordset object into a series
of pages, each of which has the number of records equal to PageSize
(except for the last page, which may have fewer records). The provider must
support the appropriate functionality for this property to be available. Like
the AbsolutePosition
property, AbsolutePage is 1-based and equals 1 when the current
record is the first record in the Recordset. Set this property
to move to the first record of a particular page. Obtain the total number
of pages from the PageCount
property.put Recordset.AbsolutePositionRecordset.AbsolutePosition=25IntegerRecordset object's
current record or one of the following values:| Constant | Value | Description |
|---|---|---|
| adPosBOF | -2 | Indicates that the current record pointer is at BOF (that
is, the BOF property is True). |
| adPosEOF | -3 | Indicates that the current record pointer is at EOF (that
is, the EOF property is True). |
| adPosUnknown | -1 | Indicates that the Recordset is empty, the current position
is unknown, or the provider does not support the AbsolutePage
or AbsolutePosition property. |
IntegerRecordset
object.AbsolutePosition property of the wrapped ADODB.Recordset
object. Use the AbsolutePosition property to move to a record
based on its ordinal position in the Recordset object, or to
determine the ordinal position of the current record. The provider must support
the appropriate functionality for this property to be available. Like the
AbsolutePage property,
AbsolutePosition is 1-based and equals 1 when the current record
is the first record in the Recordset. You can obtain the total
number of records in the Recordset object from the RecordCount
property .b=Recordset.BookmarkRecordset.Bookmark=bFloatRecordset object.Bookmark property of the wrapped ADODB.Recordset
object. Use the Bookmark property to save the position of the
current record and return to that record at any time. Bookmarks are available
only in Recordset objects that support bookmark functionality.put Recordset.SortRecordset.Sort="lastName DESC, firstName ASC"StringRecordset
is sorted, and whether each field is sorted in ascending or descending order.Sort property of the wrapped ADODB.Recordset
object. This property requires the CursorLocation
property to be set to adUseClient. A temporary index will be
created for each field specified in the Sort property if an index
does not already exist. The sort operation is efficient because data is not
physically rearranged, but is simply accessed in the order specified by the
index. Setting the Sort property to an empty string will reset
the rows to their original order and delete temporary indexes.
Suppose a Recordset contains three fields named firstName,
middleInitial, and lastName. Set the Sort property to the string,
"lastName DESC, firstName ASC", which will order the Recordset
by last name in descending order, then by first name in ascending order.
put Recordset.FilterRecordset.Filter="LastName = 'Smith' AND FirstName = 'John'"StringIntegerRecordset.
It can be one of the following values:| Constant | Value | Description |
|---|---|---|
adFilterAffectedRecords |
2 | Filters for viewing only records affected by the last Delete, Resync, UpdateBatch, or CancelBatch call. |
adFilterConflictingRecords |
5 | Filters for viewing the records that failed the last batch update. |
adFilterFetchedRecords |
3 | Filters for viewing the records in the current cache—that is, the results of the last call to retrieve records from the database. |
adFilterNone |
0 | Removes the current filter and restores all records for viewing. |
adFilterPendingRecords |
1 | Filters for viewing only records that have changed but have not yet been sent to the server. Applicable only for batch update mode. |
Filter property of the wrapped ADODB.Recordset
object. Use the Filter property to selectively screen out records
in a Recordset object. The filtered Recordset becomes
the current cursor. put Recordset.CacheSizeRecordset.CacheSize=10IntegerRecordset
object that are cached locally in memory.CacheSize property of the wrapped ADODB.Recordset
object. Use the CacheSize property to control how many records
the provider keeps in its buffer and how many to retrieve at one time into
local memory.put Recordset.MaxRecordsRecordset.MaxRecords=10IntegerMaxRecords property of the wrapped ADODB.Recordset
object. Use the MaxRecords property to limit the number of records
that the provider returns from the data source. The default setting of this
property is zero, which means the provider returns all requested records.
The MaxRecords property is read/write when the Recordset
is closed and read-only when it is open. | ©2001 Eugene Shoustrov | www.adoxtra.com | Built on April 4, 2001 |