The command object fields were added in Lesson 4. All that is needed now is the RecordsetNavBar control. You add the control by dragging it from the toolbox to the page. Drag the control from the tool box to the page and drop it between the </TR> and </TABLE> tags. For the purpose of this simulation, just click the RecordsetNavbar control and we will drag it for you.
These four buttons will allow you to navigate through the records in a database. But, first you need to set a couple of properties before you can use the control. Do this by right-clicking the RecordsetNavBar DTC.
Select Properties from the menu.
Only two properties need to be set. First, set the name to BookNav. Now you need to tell the control which recordset to use. Pull the list box down by clicking the down arrow to the right of the Recordset field.
Select BookRecords in the Recordset list box.
Now click OK to continue.
Now the control is ready for use. You can look at the page in the browser by right-clicking the Source Editor.
Select View in browser.
Here is the page with the RecordsetNavBar control. To see it in action, click the button with the > symbol to go to the next record.
Now click the button with the >| symbol to move to the last record.
Lastly, click the |< button to move to the first record.
Now you are back to the first record. I think you'll agree that the RecordsetNavbar control adds a lot of functionality for just a little bit of work. This is the end of the simulation.