Record selection on continuous forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I would like to select a specific record on a continuous form from
code?
I'm running MS Access 97.
 
Thanks for your information. Is it possible to navigate to a specific
record
on a continuous form? If so, how?

Not sure what you mean by navigate? I simply use the arrow keys. The problem
is that in a datasheet, the up/down arrow keys work, but not in continues
form.

However, you can make the up/down arrow keys work just like a continues
form/spreadsheet. You have to first set the forms key-preview to yes, and
then insert the following code into the key down event.

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

' key hand

Select Case KeyCode

Case vbKeyUp
KeyCode = 0
On Error Resume Next
DoCmd.GoToRecord acActiveDataObject, , acPrevious

Case vbKeyDown
KeyCode = 0
On Error Resume Next
DoCmd.GoToRecord acActiveDataObject, , acNext

End Select

End Sub
 
I would like to programmatically navigate to a specific record on the
continuous subform. Any ideas?
 
Back
Top