Results 1 to 3 of 3

Thread: [RESOLVED] Populate textboxes from flexgrid via arrow keys

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2006
    Posts
    449

    Resolved [RESOLVED] Populate textboxes from flexgrid via arrow keys

    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

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Populate textboxes from flexgrid via arrow keys

    Put the call to FillFields in the event that occurs when the row/col changes... I think it is _RowColChange , or perhaps _SelChange

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2006
    Posts
    449

    Re: Populate textboxes from flexgrid via arrow keys

    Nice call Si!!

    It was the SelChange.

    vb Code:
    1. Private Sub msfg3U_SelChange()
    2.     msfg3U_Click
    3. End Sub

    It works like a charm.

    Thank You!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width