Advertisement
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: |
'THis is the code Snippet in my VB6 program
Call db.Open(GetConnectionString(mFolder))
Set rs = New ADODB.Recordset
Call rs.Open("SELECT * FROM " & Descr.Text & " where [Date] = '20080101'", db, adOpenStatic, adLockReadOnly)
If (rs.RecordCount > 0) Then
rs.MoveFirst
While Not (rs.EOF)
If (IsNull(rs.Fields(0))) Then
mValue = ""
Else
mValue = CStr(rs.Fields(0))
End If
Set mItem = ListView1.ListItems.Add(1, , mValue)
For mIndex = 1 To rs.Fields.Count - 1
If (IsNull(rs.Fields(mIndex))) Then
mValue = ""
Else
mValue = CStr(rs.Fields(mIndex))
End If
mItem.SubItems(mIndex) = mValue
Next mIndex
rs.MoveNext
Wend
End If
Call rs.Close
Set rs = Nothing
|
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
|
Loading Advertisement... |