|
|
Database application can be created using data control. The data control support some methods that are useful in manipulating the database, for example, to move the pointer to a certain location. The following are some of the commands that you can use to move the pointer around:
You can also add, save and delete records using the following commands:
*note: data_navigator is the name of data control In the following example, you shall insert four commands and label them as First Record, Next Record, Previous Record and Last Record . They will be used to navigator around the database without using the data control. You still need to retain the same data control (from example in lesson 19) but set the property Visible to no so that users will not see the data control but use the button to browse through the database instead. Now, double-click on the command button and key in the codes according to the labels. Private Sub Command2_Click()
|
|
Run the application and you shall obtain the interface below and you will be able to browse the database using the four command buttons.
|
<Previous Lesson> [Back to contents page] < Next Lesson>