Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of records on a filtered table
Message
 
 
To
15/09/2008 20:56:04
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347777
Message ID:
01347779
Views:
8
>I have a table that has a filter. If no records satisfy the filter, how can I tell? The RecCount() shows the number in the table, not just those in the filtered result. I need to know if the filtered result is empty.
SELECT mytable
COUNT
IF _TALLY = 0
  * No records match the filter
ENDIF

* Or

SELECT mytable
LOCATE
IF EOF()
  * No records match the filter
ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform