Change the Caption of the CommandButton1 to View Report. Add the Adodc Control from our ToolBox named: ADODC1. Change the Caption Property for each Label as shown in the image below. Now add 9 Labels named: Label1, Label2, Label3 and so on. Add 9 TextBox(s) named: Text1, Text2, Text3 and so on. You will now have a this Component in your ToolBox. Add a Adodc Component by going to Projects, Components and choose Microsoft ADO Data Control. Open Visual Basic and choose: Standard EXE. (.doc) Creating our User Interface in Visual Basic 6.0 We"ll just place a few controls and in a short time we'll be able to Export our DataReport to a Microsoft Word. Now let's move on to creating a user interface in Visual Basic 6.0. Now, open the Customers Table and fill in the information you see in the image below. Now create a table by going to: Create Table in Design View and enter the Field Name(s) and Data Type(s) as shown in the image below. (.doc) Creating our Database in Microsoft Access:Ĭreate a blank database in Microsoft Access and name the database: DataReport. We'll then add a DataEnvironment and DataReport and within minutes we'll be able to export our DataReport to a Microsoft Word Document. Putting everything together should be relatively easy because we'll use Adodc Componenet to make the connection to our Database. In this article we'll create a simple database in Microsoft Access and then create a user interface in Visual Basic 6.0. How to: Export a DataReport to Microsoft Word (.doc)
0 Comments
Leave a Reply. |