|
-
February 15th, 2000, 05:08 AM
#2
Re: Need Help tonight
Hi,
Do you know what type of grid you are going to use? I use MSFlexGrid with the following code
'Setup Your Database Connection and query Here
MSFlexGrid1.Clear 'Clear Old grid and Specify new grid settings
MSFlexGrid1.Rows = 1
MSFlexGrid1.Cols = 2
MSFlexGrid1.TextMatrix(0, 0) = "Field One"
MSFlexGrid1.TextMatrix(0, 1) = "Field Two"
While RS_MYTABLE.EOF = false
MSFlexGrid1.Rows = MSFlexGrid1.Rows + 1 ' Add a new Row to the Grid
MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows, 0) = RS_MYTABLE.Fields("Field1").Value 'Specify value for col 1
MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows, 1) = RS_MYTABLE.Fields("Field2").Value 'Specify value for col 2
RS_MYTABLE.MoveNext
Wend
Hope that helps
Ian
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|