I am using the following code to get the count from a DBF file using VB6 and ADO:
It seems to return the correct count when the DBF is small but if it is large it does not return the correct number. Any ideas? Thanks.
Swi
Code:
With rs
.Open "SELECT COUNT(*) FROM [" & FileName & "]", conn, adOpenStatic, adLockReadOnly, adCmdText
NumOfRecords = .Fields(0).Value
.Close
End With
It seems to return the correct count when the DBF is small but if it is large it does not return the correct number. Any ideas? Thanks.
Swi