Results 1 to 2 of 2

Thread: msflexgrid search

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2013
    Posts
    1,126

    msflexgrid search

    Suppose you have this msflexgrid with records of firstname, lastname and dateofbirth and you have 5000 records of that.

    I would like to do the search on the msflexgrid as the firstname as criteria. How do you do that?

    I appreciate if there is a sample for this for me to study. TIA

  2. #2
    Lively Member
    Join Date
    Apr 2014
    Posts
    66

    Re: msflexgrid search

    Hello codesearcher,

    Code:
    Dim jrow As Integer
    For jrow = 1 To MSFlexGrid1.Rows - 1
    If MSFlexGrid1.TextMatrix(jrow, 1) = Text1.Text Then 'column 1 means your firstname column
    Text2.Text = MSFlexGrid1.TextMatrix(jrow, 2)             ' or you want any
    End If
    Next jrow

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