jump to a specified record

Gkirkup

Registered User.
Local time
Today, 04:00
Joined
Mar 6, 2007
Messages
628
I have a form which displays an inventory record. The user can click a button to display the next or previous record. But there may be hundreds of records in the set, so this is slow. I would like to allow the user to jump to a specific record number, which they enter. How do I jump to a specific record number in the set?

Robert
 
You can use the
Code:
DoCmd.GoToRecord , , acGoTo, The_RecordNumber
The record number can be from a unbound Text Box or an unbound ComboBox. Whichever suits your need. Best would be combo, as you be assured that the user does not type Goto 1234 when there is only 5 records.
 
That worked perfectly. Thanks so much!
Robert
 

Users who are viewing this thread

Back
Top Bottom