

Using the ADO Data ControlAdd the Microsoft ADO Data Control 6.0 (OLEDB) component to your project.Create an instance of the ADO Data Control on your form.Connect to a database with the ADO Data Control by building a connection string.Set the RecordSource property of the ADO Data Control Create bound controls on your form.īuilding a Connection StringIn the properties window of the ADO Data controls choose the ConnectionString property.3 MethodsFrom the property pages, choose Use Connection String and choose BuildFrom the Provider tab in the Data Link Properties dialog box, specify which data provider to use.use Microsoft Jet 4.0 OLE DB Provider for Access databaseschoose Next > to bring up the Connection tab of the Data Link Properties dialog boxīuilding a Connection StringThree methodsUse a data Data Link FileUse an ODBC Data Source NameUse a Connection StringBackīuilding a Connection StringFrom the Connection tab, enter your database name and path (or browse for it)Leave the default log on informationTest Connection

The ADO Object ModelFour main objects:Connection the link between the program and the data storeCommand allows you to run commands against the data storeRecordset contains all the data returned from a specific action on the data storeStream allows the manipulation of data held in web resources, such as HTML files

For new projects, you should use ADO as your data access interface. It features a simpler yet more flexible object model than either RDO or DAO. OLE-DBApplicationOLE-DBProviderOLE-DBProviderOLE-DBProviderOLE-DBProviderOLE-DBProviderODBCDataAccessSQLServerOracleExcelODBCADOĪDO, DAO and RDO in Visual BasicIn Visual Basic, three data access interfaces are available to you:ActiveX Data Objects (ADO) Remote Data Objects (RDO) Data Access Objects (DAO)Data access technology is constantly evolving, and each of the three interfaces represents a different stage of development for data access technology. Universal Data AccessOpen Database Connectivity (ODBC)standard for accessing data in databasesOLE-DBallows access to data in many formatsfaster and easier to use than ODBC
