Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15117

[RESOLVED] Need help with flexgrid

$
0
0
Hello vbforums
I have a table like this
ID---------- Item
1 ---------- aaa
1-----------bbb
Code:

Select* from Tbl where ID=1 group BY ID, Item"
Do While Not Rs.EOF
Text1.Text = Text1.Text & "  " & Rs!Item
Rs.MoveNext
Loop

I get this :

aaa bbb

I want to sort them the same way but in Flexgrid.

Code:

Rs.MoveLast
 Rs.MoveFirst
With Me.VBFlexGrid1
Do While Not Rs.EOF
.TextMatrix(i, 1) = Rs!ID
.TextMatrix(i, 2) = Rs!Item
Rs.MoveNext
If Rs.EOF = False Then
i = i + 1
End If
Loop
End With

The output is:

ID---------- Item
1 ---------- aaa
1-----------bbb

But I need this output:

ID ---- Item
1 ------ aaa bbb

Thank you

Viewing all articles
Browse latest Browse all 15117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>