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
ActiveConnection, CommandText, CommandTimeout, CommandType, Size, and Direction Properties Example
ConnectionString, ConnectionTimeout, and State Properties Example
Description, HelpContext, HelpFile, NativeError, Number, Source, and SQLState Properties Example
See Also
ADO Code Examples VBScript
ADO Code Examples in Visual C++
Appendix D: ADO Samples