Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reccount() for a select
Message
From
18/10/2005 18:31:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/10/2005 18:18:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01060078
Message ID:
01060090
Views:
16
>>How do I know how many records are in a Select cursor?
>>
>>If I do "Select * from Cities where city='HOUSTON" I get just a few records, but if I print Reccount() I get several hundred thousand (the entire database rcooord count).
>
>
>Select *, COUNT(*) AS RcCount from Cities where city='HOUSTON INTO CURSOR cTest
>? RecCount("CTest")
>? CTest.RcCount
>
Note that if you omit the NOFILTER clause, reccount() may return all records from the table, not just the selected records.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform