letmeoutofhere
Programmer
I have created the following code to retrieve a set of records from a recordset. I am returning 8 records (as expected) however, I want to know how many I have retrieved instead of the actual records.
The value of "F" is always 1 as the recordcount option never returns the number of records returned just the number of the record selected.
I have played around and referenced all of the records - using the .next logic - and when I do that the recordcount will reflect the correct number of records. This is fine to do for small databases' but not for any thing that contains any records at all..
Any ideas?
Thanks.
Jim..
********************************************************
strsql = "SELECT [lastname] from [MemberShipRoll] where [LastName] = '" & txLastName & "'"
Set FamilyRecordSet = dbsname.OpenRecordset(strsql, dbOpenDynaset)
F = FamilyRecordSet.RecordCount
********************************************************
The value of "F" is always 1 as the recordcount option never returns the number of records returned just the number of the record selected.
I have played around and referenced all of the records - using the .next logic - and when I do that the recordcount will reflect the correct number of records. This is fine to do for small databases' but not for any thing that contains any records at all..
Any ideas?
Thanks.
Jim..
********************************************************
strsql = "SELECT [lastname] from [MemberShipRoll] where [LastName] = '" & txLastName & "'"
Set FamilyRecordSet = dbsname.OpenRecordset(strsql, dbOpenDynaset)
F = FamilyRecordSet.RecordCount
********************************************************