ordendelfai
Technical User
I have a continuous form that displays six fields from left to right. It almost looks like excel cells because of the continuous effect. I want the user to be able to click in one of the fields and use the up and down arrows to scroll through the records. I understand that the GoToRecord method already keeps the focus on the same field, so I think I am ok in that respect, but I cannot figure out how to get the code working (and what form event to put it on).
So far I have tried with no success:
~~~~~~~~~~~~~~~~~~~~~~code~~~~~~~~~~~~~~~~~~~~
Private Sub Form_KeyPress(KeyAscii As Integer)
Dim UpArrow As Integer
Dim DOWNArrow As Integer
UpArrow = vbKeyUp
DOWNArrow = vbKeyDown
If UpArrow Then
DoCmd.GoToRecord , , acNext
ElseIf DOWNArrow Then
DoCmd.GoToRecord , , acPrevious
End If
End Sub
Thanks for you help =D
~Orden
So far I have tried with no success:
~~~~~~~~~~~~~~~~~~~~~~code~~~~~~~~~~~~~~~~~~~~
Private Sub Form_KeyPress(KeyAscii As Integer)
Dim UpArrow As Integer
Dim DOWNArrow As Integer
UpArrow = vbKeyUp
DOWNArrow = vbKeyDown
If UpArrow Then
DoCmd.GoToRecord , , acNext
ElseIf DOWNArrow Then
DoCmd.GoToRecord , , acPrevious
End If
End Sub
Thanks for you help =D
~Orden