ADO Code Examples in Visual Basic

Use the following code examples to learn how to use the ADO methods, properties, and events when writing in Visual Basic.

Note   Paste the entire code example, from Sub to End Sub, into your code editor. The example may not run correctly if partial examples are used or if paragraph formatting is lost.

Methods

Properties

  • AbsolutePage, PageCount, and PageSize Properties Example
  • AbsolutePosition and CursorLocation Properties Example
  • ActiveCommand Property Example
  • ActiveConnection, CommandText, CommandTimeout, CommandType, Size, and Direction Properties Example
  • ActualSize and DefinedSize Properties Example
  • Attributes and Name Properties Example
  • BOF, EOF, and Bookmark Properties Example
  • CacheSize Property Example
  • ConnectionString, ConnectionTimeout, and State Properties Example
  • Count Property Example
  • CursorType, LockType, and EditMode Properties Example
  • Description, HelpContext, HelpFile, NativeError, Number, Source, and SQLState Properties Example
  • EOS and LineSeparator Properties, SkipLine Method Example
  • Filter and RecordCount Properties Example
  • IsolationLevel and Mode Properties Example
  • Item Property Example
  • MarshalOptions Property Example
  • MaxRecords Property Example
  • NumericScale and Precision Properties Example
  • Optimize Property Example
  • OriginalValue and UnderlyingValue Properties Example
  • Prepared Property Example
  • Provider and DefaultDatabase Properties Example
  • Sort Property Example
  • Source Property Example
  • State Property Example
  • Status Property Example
  • StayInSync Property Example
  • Type Property Example (Field)
  • Type Property Example (Property)
  • Value Property Example
  • Version Property Example

See Also

ADO Code Examples in Microsoft Visual Basic Scripting Edition | ADO Code Examples in Microsoft Visual C++ | ADO Code Examples in Microsoft Visual J++ | Appendix D: ADO Samples