MICROSOFT VISUAL BASIC 6.0 COMPILE ERROR @ module
WINDOWS 7 32 BIT / VISUAL BASIC 6.0
can't find project libaray ERROR
PLEASE HELP ME
- Public Sub FillListView(ByRef sListView As ListView, ByRef sRecordSource As Recordset, ByVal sNumOfFields As Byte, ByVal sNumIco As Byte, ByVal with_num As Boolean, ByVal show_first_rec As Boolean, Optional srcHiddenField As String)
- Dim X As Variant
- Dim i As Byte
- On Error Resume Next
- sListView.ListItems.Clear
- If sRecordSource.RecordCount < 1 Then Exit Sub
- sRecordSource.MoveFirst
- Do While Not sRecordSource.EOF
- If with_num = True Then
- Set X = sListView.ListItems.Add(, , sRecordSource.AbsolutePosition, sNumIco, sNumIco)
- Else
- Set X = sListView.ListItems.Add(, , "" & sRecordSource.Fields(0), sNumIco, sNumIco)
- End If
- If srcHiddenField <> "" Then X.Tag = sRecordSource.Fields(srcHiddenField)
- For i = 1 To sNumOfFields - 1
- If show_first_rec = True Then
- If with_num = True Then
- If sRecordSource.Fields(CInt(i) - 1).Type = adDouble Then
- X.SubItems(i) = FormatRS(sRecordSource.Fields(CInt(i) - 1))
- Else
- X.SubItems(i) = "" & FormatRS(sRecordSource.Fields(CInt(i) - 1))
- End If
- Else
- If sRecordSource.Fields(CInt(i)).Type = adDouble Then
- X.SubItems(i) = FormatRS(sRecordSource.Fields(CInt(i)))
- Else
- X.SubItems(i) = "" & FormatRS(sRecordSource.Fields(CInt(i)))
- End If
- End If
- Else
- X.SubItems(i) = "" & FormatRS(sRecordSource.Fields(CInt(i) + 1))
- End If
- Next i
- sRecordSource.MoveNext
- Loop
- i = 0
- Set X = Nothing
- End Sub
- 11 views