Visual Basic 2005 Guide
Databases - Data Entry Forms


Visual Basic does have a few more features for working with databases that we may find useful. The DataGridView is useful for displaying large datasets but not normally used when you want the user to be able to deal with one record at a time.

Making A Data Entry From

Return to the DataGridView example and check out the Data Sources tab in the top left hand corner of the IDE. You should see all of the database objects in the database file we added to the project. If not, start a new project and add the Star Trek database again.

Now create a blank form. Expand the Episode table in the data sources window and drag the fields one-by-one onto the form. When you finish, you should end up with something like the following,

data entry form

And that's all you have to do...