With the help of others, I was able to use the up or down arrow key to navigate through my database via a Datagrid.

But now, I would like to use a Flexgrid instead, but the code does not work for the flexgrid like it did for the datagrid.

Here is the code:

When user sets focus on a record in the flexgrid and this populates the textboxes.
vb Code:
  1. Private Sub msfg3U_Click()
  2.     Fillfields
  3. End Sub

code that worked for the datagrid to move up and down through the records and populated the textboxes as it went along.
vb Code:
  1. Private Sub msfg3U_KeyUp(KeyCode As Integer, Shift As Integer)
  2.     msfg3U_Click
  3. End Sub