noycez Level: VB Guru

 Registered: 14-10-2002 Posts: 79
|
Re: ADO record retrieval multi columns
Assume that we put a FlexGrid in Form, name msList and a recordset with your values in table
**********************************************
msList.Rows = 4 '# of fields + 1
msList.Cols = rec.RecordCount + 1
rec.MoveFirst
Do While Not rec.EOF
msList.TextMatrix(1, rec.Bookmark) = rec!Date
msList.TextMatrix(2, rec.Bookmark) = rec!Field1
msList.TextMatrix(3, rec.Bookmark) = rec!Field2
rec.MoveNext
Loop
***********************************************
____________________________
Funny thought:
Practice makes perfect.....
But nobody's perfect......
so why practice?
|