View contents of this chapter

Advanced Data Control Usage

In the previous section, we developed an application that was read only. However, you'll want to be able to let users change the database. There are several ways to do this. The simplest approach is to display the data in a text box instead of a label control.

The Data control also supports several Move-related methods you can use to move the current record pointer to the same locations the data control's button do. The following methods move the record pointer to the first, last, next, and previous records in the database.

datCust.Recordser.MoveFirst  ' move to the first record
datCust.Recordser.MoveLast   ' move to the last record
datCust.Recordser.MoveNext   ' move to the next record
datCust.Recordser.MovePrevious   ' move to the previous record

Play Sound The record pointer keeps track of the current record in an open database's table.

 



© Universal Teacher Publications        INDEX Previous Screen Next Screen