I have a sample form that uses MSFlexGrid, you wanna see the codes? I have no way to upload attachment here, so if u want it, just email me at gigsvoo@yahoo.com or post ur request at my website at http://communities.msn.com.my/VisualBasicwithNeo ok? Thanks
Neo...
From what i understand, you should need a SQL statement to do this:
To retrive 2 different tables field values:
"SELECT a.field1, b.field2 FROM Table1 a, Table2 b WHERE a.field2 = b.field3" Thanks
Neo
http://communities.msn.com.my/VisualBasicwithNeo
Or shall redesign the number of report textboxes? DO u think the GROUP BY will come out the require recordset? if yes, then rearrange the thing to fit. Thanks
Neo
http://communities.msn.com.my/VisualBasicwithNeo
Should be this:
Private Sub lstNames_Click()
Dim i As Long
txtUns.Text = lstNames.Text
With cmd
.CommandText = "_ParamAttendStats"
.CommandType = adCmdStoredProc
.Parameters("SocSecNum") = txtUns.Text
End With
rs.Open cmd, ...
Dim fso As New FileSystemObject
Dim f As TextStream
Set f = fso.OpenTextFile("C:\Test.txt", ForAppending)
Dim i, j
For i = 0 to MsFlexGrid1.Rows - 1
For j = 0 to MsFlexGrid1.Cols - 1
f.Write(MsFlexGrid1.TextMatrix(i, j)) & ";"
Next
f.Write() & vbCrLf
Next...
You can do that...but if there are some calculations or functions happened b4 ouptput, then you can use a FileSystemObject writting textfile method. Thanks
Neo
http://communities.msn.com.my/VisualBasicwithNeo
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.