State - property of the AdoRecord object
Description:
Detects whether the
AdoRecord object is open, closed, connecting, executing or retrieving data.
Values:
0 - (adStateClosed) Object is closed.
1 - (adStateOpen) Object is open.
2 - (adStateConnecting) Object is connecting.
4 - (adStateExecuting) Object is executing a statement.
8 - (adStateFetching) The records of the object are being retrieved.
Note:
Property access for read only.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var nState = oAdoRecord.State;
Dim nState
nState = oAdoRecord.State