ADO Status Property-Field Object

The Status property returns a FieldStatusEnum value that indicates the status of a Field object. Default value is adFieldOK. If any upda...


The Status property returns a FieldStatusEnum value that indicates the status of a Field object. Default value is adFieldOK.

If any updates fail then an error is returned and the Status property indicates the combined values of the operation and error status code. The Status property for each Field can be used to determine why the Field was not added, modified, or deleted.

Problems with adding, modifying, or deleting a Field are reported through this property. For example, if a user deletes a Field, it will be marked for deletion in the Fields collection. If the Update call returns an error because the user tried to delete a Field for which he does not have permission, the Status for this field will be adFieldPermissionDenied or adFieldPendingDelete.

Syntax

objfield.Status

Example

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"
set rs = Server.CreateObject("ADODB.Recordset")
rs.open "Select * from orders", conn
response.write(rs.Fields(0).Status)
rs.Close
conn.close
%>


FieldStatusEnum Values

Constant Value Description
adFieldOK 0 Default. The field was successfully added or deleted
adFieldCantConvertValue 2 The field cannot be retrieved or stored without loss of data
adFieldIsNull 3 The provider returned a null value
adFieldTruncated 4 Variable-length data was truncated when reading from the data source
adFieldSignMismatch 5 The data value returned by the provider was signed, but the data type of the ADO field value was unsigned
adFieldDataOverflow 6 The data returned from the provider overflowed the data type of the field
adFieldCantCreate 7 The field could not be added because the provider exceeded a limitation
adFieldUnavailable 8 The provider could not determine the value when reading from the data source
adFieldPermissionDenied 9 The field cannot be modified because it is read-only
adFieldIntegrityViolation 10 The field cannot be modified because it is a calculated or derived entity
adFieldSchemaViolation 11 The value violated the data source schema constraint for the field
adFieldBadStatus 12 An invalid status value was sent from ADO to the OLE DB provider
adFieldDefault 13 The default value for the field was used when setting data
adFieldIgnore 15 This field was skipped when setting data values in the source
adFieldDoesNotExist 16 The field does not exist
adFieldInvalidURL 17 The data source URL contains invalid characters
adFieldResourceLocked 18 The provider cannot perform the operation because the data source is locked
adFieldResourceExists 19 The provider cannot perform the operation because an object already exists at the destination URL and it is not able to overwrite the object
adFieldCannotComplete 20 The server of the URL specified by Source could not complete the operation
adFieldVolumeNotFound 21 The provider is unable to locate the storage volume indicated by the URL
adFieldOutOfSpace 22 The provider is unable to obtain enough storage space to complete a move or copy operation
adFieldCannotDeleteSource 23 During a move operation, a tree or subtree was moved to a new location, but the source could not be deleted
adFieldReadOnly 24 The field in the data source is read-only
adFieldResourceOutOfScope 25 A source or destination URL is outside the scope of the current record
adFieldAlreadyExists 26 The specified field already exists
adFieldPendingInsert 0x10000 The Append operation caused the status to be set. The field has been marked to be added to the Fields collection after the Update method is called
adFieldPendingDelete 0x20000 The Delete operation caused the status to be set. The field has been marked for deletion from the Fields collection after the Update method is called
adFieldPendingChange 0x40000 The field has been deleted and then re-added or the value of the field which previously had a status of adFieldOK has changed
adFieldPendingUnknown 0x80000 The provider cannot determine what operation caused field status to be set
adFieldPendingUnknownDelete 0x100000 The provider cannot determine what operation caused field status to be set, and that the field will be deleted from the Fields collection after the Update method is called.

Name

ADO,131,ASP,3,C++,61,CORE JAVA,1,CSS,115,HTML,297,index,5,JAVASCRIPT,210,OS,47,PHP,65,SAD,53,SERVLETS,23,SOFTWARE ENGINEERING,245,SQL,71,TCP/IP,1,XHTML,9,XML,18,
ltr
item
Best Online Tutorials | Source codes | Programming Languages: ADO Status Property-Field Object
ADO Status Property-Field Object
Best Online Tutorials | Source codes | Programming Languages
https://www.1000sourcecodes.com/2012/05/ado-status-property-field-object.html
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/2012/05/ado-status-property-field-object.html
true
357226456970214079
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content