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
datCust.Recordser.MoveLast
datCust.Recordser.MoveNext
datCust.Recordser.MovePrevious
The record pointer keeps track of the current
record in an open database's table. |
|