Results 1 to 10 of 10

Thread: msflexgrid vertical scroll

Threaded View

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    msflexgrid vertical scroll

    Hi

    I have a msflexgrid on a form which I populate with a SP......What
    I want is to conduct a search and highlight the appropriate row.....my problem is that the RS is highlighted but the flexgrid
    does not scroll down and make the selected RS visible...

    Hope you can understand!!



    VB Code:
    1. Private Sub cmdfind_Click()
    2.  
    3.     Dim LngColumns As Long
    4.     Dim LngRows As Long
    5.  
    6.    On Error GoTo cmdfind_Click_Error
    7.  
    8.         For LngColumns = 0 To MSFlexReview.Cols - 1
    9.         For LngRows = 1 To MSFlexReview.Rows - 1
    10.         If InStr(MSFlexReview.TextMatrix(LngRows, LngColumns), txtPalletID) Then
    11.          Call HiglightMSflex(LngRows)
    12.  
    13.  End If
    14.  Next LngRows
    15.  Next LngColumns
    16.    Exit Sub
    17.  
    18. cmdfind_Click_Error:
    19.  Call ModError_log  'All error descriptions written to a error log
    20.     MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure cmdfind_Click of Form frmReview"
    21.  
    22. End Sub

    Thanks for your help

    Has anyone any suggetions on how I could accomplish this?

    Last edited by holly; Nov 6th, 2003 at 11:29 AM.
    ** HOLLY **

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