Project to display a database - data control, Visual Basic Programming

A Project to Display a Database:

1. Suppose that there are 5 fields describing a customer. Id, address, name, city & state.

2. Put 5 text boxes on the form to exhibit the records.

3. Put a data control on the form.

4. Set the DatabaseName property as shown below:

Data1.DatabaseName = "C:\ex.mdb"

5. Place the Record Source for the data control as the Customer by selecting ttable from the drop down list box in the property box.

6. Put the Record Type to 0 to point out the Customer table of ex.mdb .

7. Bind the text boxes to the data control. This is consummate by setting the Data Source to the Data1 for all the text boxes one at a time.

8. Put the DataField property for each text box and set to the various fields of the Customer table.

9. Run the project.

10. The records of the Customer table would be exhibited.

Posted Date: 10/10/2012 1:07:14 AM | Location : United States







Related Discussions:- Project to display a database - data control, Assignment Help, Ask Question on Project to display a database - data control, Get Answer, Expert's Help, Project to display a database - data control Discussions

Write discussion on Project to display a database - data control
Your posts are moderated
Related Questions
A triangle is equilateral if all three sides are equal, isosceles if any two (but no more than two) sides are equal, and scalene if no two sides are equal. A triangle will be input

Select Case: The Select Case is used for handling the multiple paths. The Select Case computes the expression and depending on the value of the equivalent Case statement execu

Write Visual Basic programs for the following: 1.     Write a program that uses a "For Loop" to generate a list of temperature conversions in one degree increments from a given

You can control the flow of your script with conditional statements & looping statements.  By using conditional statements, you can write VBScript code which makes decisions and re

( Wage Calculator with Tax Calculations) Develop an application that calculates an employee’s earnings, as shown in Fig. 4.23. The user should provide the hourly wage and number of

You can employ the SCRIPT element to add VBScript code to an HTML page. The SCRIPT Tag VBScript code is written inside paired SCRIPT tags. For instance, a process to test

Steps for Creating A MDI Form: 1. Build a new form and set IsMdiContainer property to true. 2. Build a child form class to add to the form. 3. Now Right click the proj

Record Set: The record set presents the records in a base table or the records retrieved due to the query. The record set falls into 3 classes. These are table type record set

Develop a web page that is used for accepting information regarding stocks. Make sure the form carry out the possible validations. The simple instance code below merely illustrates

Deleting Records: To remove a record use the Delete method. To delete the record from the customer table follow the coding as shown below: data1.RecordSource = "Customer"