This example navigates through a recordset by asking the user whether to use MoveFirst, MoveLast, MoveNext, or MovePrevious.
See How to Build the DAO Method Samples.
If you have installed the DAO SDK, see InstallDirectory\DAOSDK\SAMPLES\MoveFirst.cpp.