Last part of my problem...I have this search function that searches through a flexgrid I have on my interface, and it works great...now what I need to do is bring each record that is found into a separate flexgrid with the same properties as the parent flexgrid, with just the records that were found...
any suggestions?


This is my search function:


VB Code:
  1. Sub Search()
  2.     Dim target_name As String, sResult As String
  3.     Dim r As Integer, c As Integer, sResultArray() As String, sra As Integer
  4.    
  5.     target_name = UCase$(InputBox("Letter", "Letter"))
  6.     If Len(target_name) = 0 Then Exit Sub
  7.    
  8.     With grd
  9.         .Redraw = False
  10.         .FillStyle = flexFillRepeat
  11.         .Col = 1: .Row = 1
  12.         .ColSel = .Cols - 1
  13.         .RowSel = .Rows - 1
  14.         .CellBackColor = vbWhite
  15.        
  16.         For r = 0 To .Rows - 1
  17.             For c = 1 To .Cols - 1
  18.                 If .TextMatrix(r, c) Like target_name & "*" Then Exit For
  19.             Next c
  20.             If c < .Cols Then
  21.                 For c = 1 To .Cols - 1
  22.                     sResult = sResult & vbTab & .TextMatrix(r, c)
  23.                 Next c
  24.  
  25.                 sResult = vbNullString
  26.             End If
  27.         Next r
  28.         .Col = 0: .Row = 0
  29.         .Redraw = True
  30.     End With
  31.    
  32.     MsgBox "Finished!"
  33.    
  34.    
  35.    
  36. End Sub