farah
Jul 5th, 1999, 09:59 PM
Hello everyone,
I got the following code from vb help, How can I hilight and make the colomn itmX.SubItems(1) = CStr(myRs!Au_id) in different color like blue? Thanks for your help in advance.
While Not myRs.EOF
Set itmX = ListView1.ListItems. _
Add(, , CStr(myRs!Author)) ' Author.
' If the AuthorID field is not null, then set ' SubItem 1 to it.
If Not IsNull(myRs!Au_id) Then itmX.SubItems(1) = CStr(myRs!Au_id)
End If ' If the birth field is not Null, set ' SubItem 2 to it.
If Not IsNull(myRs![Year Born]) Then
itmX.SubItems(2) = myRs![Year Born] End If
myRs.MoveNext ' Move to next record. Wend
I got the following code from vb help, How can I hilight and make the colomn itmX.SubItems(1) = CStr(myRs!Au_id) in different color like blue? Thanks for your help in advance.
While Not myRs.EOF
Set itmX = ListView1.ListItems. _
Add(, , CStr(myRs!Author)) ' Author.
' If the AuthorID field is not null, then set ' SubItem 1 to it.
If Not IsNull(myRs!Au_id) Then itmX.SubItems(1) = CStr(myRs!Au_id)
End If ' If the birth field is not Null, set ' SubItem 2 to it.
If Not IsNull(myRs![Year Born]) Then
itmX.SubItems(2) = myRs![Year Born] End If
myRs.MoveNext ' Move to next record. Wend