Record Selection with Bound Controls

The Contacts program described in the previous sections works but it is rather cumbersome. If the database contains a large number of records, using the <<, <, >, and >> buttons to find a particular record would be tedious. It would be much more convenient if you could list the records’ LastName fields and select the one you want.

Figure 8.11 shows the ContactsList program. It is very similar to the initial Contacts program except it uses a ListBox to navigate instead of buttons. Use the list on the left to select a record. Click on fields and type new values to edit the record. The Data menu’s Save, Cancel Changes, New, and Delete commands work exactly as they did in program Contacts.

Figure 8.11. The ContactsList ...

Get Visual Basic® .NET Database Programming 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.