Database connectivity using ADO (ActiveX data Object) To be able to access and manage a database, you need to connect the ADO data control to a database file. We are going to use BIBLIO.MDB that comes with VB6. To connect ADO to this database file, follow the steps below: 1.) Open a new VB project and f rom the Components window (by clicking Project -> Componentsmenu), select Microsoft Activex Data Control 6.0 (OLEDB) and click OK. ADO data control will appear in the toolbox. 2.) From toolbox, Drag & Drop Activex Data object data control (ADODC1) on your f orm. 3.) Click on the ADO control on the form and it will open the properties window. 4.) Click on the General tab and check the ConnectionString property When the dialog box appears, select the Use Connection String's Option. Next, click build command button and at the Data Link Properties window, double-Click the option Microsoft Jet 3.51 OLE DB provider.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.