0% found this document useful (0 votes)
64 views

The Data Control

The document discusses various properties of the Data Control in Visual Basic used to connect to a database, including the Connect, Database Name, and RecordSource properties. The Connect property specifies the database type. The Database Name property identifies the path of the database file. The RecordSource property selects the table used by the data control. Arrays are most suitable for storing student names because they allow storage of multiple values in a fixed memory location. A For loop is most convenient for processing arrays because it allows iterating through each element in order.

Uploaded by

midhungbabu88
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views

The Data Control

The document discusses various properties of the Data Control in Visual Basic used to connect to a database, including the Connect, Database Name, and RecordSource properties. The Connect property specifies the database type. The Database Name property identifies the path of the database file. The RecordSource property selects the table used by the data control. Arrays are most suitable for storing student names because they allow storage of multiple values in a fixed memory location. A For loop is most convenient for processing arrays because it allows iterating through each element in order.

Uploaded by

midhungbabu88
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 9

The Data Control: is

used to connect VB
with a Database
Properties of Data
Control.
1. Connect
2. Data base Name
3. Record Source
4. Recordset Type
Connect:
1. Specifies the type
of the database
Default type:
Access.
Other types:
Dbase, FoxPro,
Excel, Lotus,
Paradox etc.
2. Steps to set the
Connect Property.
1. Select the data
control in the
form.
2. Properties 
Connect Select
the type of
database.
II. Database Name
1. Identifies the
path of the
database file
III. Steps to set the
Database Name
Name Property.
1. Select the data
control in the
form.
2.Properties 
Database Name
Select
Database file
Name
III.RecordSource: Is
used to select table
used by the data
control

Arrays and
Procedures
Q.1. (a). You need to
write a program to
store the names of the
students in your class.
What type of data
storage is most
suitable and why?
(b).Which loop
structure is most
convenient to process
array? (Give two
reasons for your
answer.
Q.1. Suggest most
suitable controls for
the following
Q.2. Design a form
that will allow you to
enter multiple lines of
text in some control.
The text entered must
be displayed in bold
and italic type:
Ans: We can use a
text box (Control) to
accept multiple lines
of text.
Set Multiline Property
 True
Set FontBold  True
Set FontItalic  True
Q.3. A VB program
when executed does
not display the
window. Instead the
window is shown on
the task bar. What is
the reason? How will
you correct this
problem?

You might also like