A quick method to simply dump the contents of a recordset into a FlexGrid.
VB Code:
With Me.MSFlexGrid1
'set the total # rows and columns from the recordset
'assumes RecordCount is > 0
.Rows = MyRecSet.RecordCount + .FixedRows
.Cols = MyRecSet.Fields.Count + .FixedCols
'select all "data" cells (not including any "Fixed" cells)
.Row = .FixedRows
.Col = .FixedCols
.RowSel = .Rows - 1
.ColSel = .Cols - 1
'move the entire recordset into the grid
'ensure no fields contain a CRLF
'this will not work if the data of a field contains a Tab
.Clip = Replace(MyRecSet.GetString, vbNewLine, " ")
End With