DATA SOURCES

The Windows Forms controls described in Chapter 7, “Selecting Windows Forms Controls,” allow the application and the user to communicate. They let the application display data to the user, and they let the user control the application.

Visual Basic’s database controls play roughly the same role between the application and a database. They move data from the database to the application, and they allow the application to send data back to the database.

Database programming is an enormous topic, and many books have been written that focus exclusively on database programming. This is such a huge field that no general Visual Basic book can adequately cover it in any real depth. However, database programming is also a very important topic, and every Visual Basic programmer should know at least something about using databases in applications.

This chapter explains how to build data sources and use drag-and-drop to create simple table- and record-oriented displays. It also explains the most useful controls and objects that Visual Basic provides for working with databases. Although this chapter is far from the end of the story, it will help you get started building basic database applications.

DATA DESTINATIONS
Note that the example programs described in this chapter refer to database locations as they are set up on my test computer. If you download them from the book’s website (http://www.vb-helper.com/vb_prog_ref.htm), you will have to modify many of them to work with ...

Get Visual Basic 2012 Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.