WELCOME TO OUR BLOGGER

Friday, December 23, 2011

Database Access with the Data Control

STEPS:

1. Open a new Visual Basic project.

2. Put a data control (an intrinsic control, located in the VB toolbox) on the form and set the properties as follows:

Property
Value
(Name)
datAuthors
Caption
Use the arrows to view the data
Connect
Access (default)
DatabaseName
..\biblio.mdb
DefaultType
UseJet (default)
RecordSource
Authors (choose from list)

Notes: When you use the Data Control in a project, the properties that must be set are DatabaseName and RecordSource, in that order. DatabaseName is the name of the database you want to use, and the RecordSource is the name of the table in that database that you want to use.

No comments:

Post a Comment

Search

Blogroll