Would like to make the cursor movement in a continuous form be similar to that as in a datasheet. Have had
partial success in accomplishing this. To make the up and down arrow keys function between records, the following event procedure was put in the OnKeyDown Event for the form:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyDown
DoCmd.GoToRecord , , acNext
Case vbKeyUp
DoCmd.GoToRecord , , acPrevious
End Select
End Sub
My continuous form has several fields, one of which is a text field that may have 2 or more rows of text
displayed. The settings for: (Tools); (Options); (Keyboard); (Behavior Entering Field); is: (Go to End of
Field). What I would like to achieve is: When entering the field with multiple rows of text, I would like the up
arrow key to move the cursor up one row at a time until it gets to the first row of text. After the cursor is in the
top row of text, then the next up arrow press would move the cursor to the previous record. I am at a loss on how
to program this. Help would be greatly appreciated.