How to Determine Number of Records Returned by SQL-SELECTID: Q113808 2.50 2.50a 2.50b 2.60 3.00 | 2.00 2.50 2.50a 2.50b 2.60 | 2.50b  
The information in this article applies to:
 
 SUMMARYYou can create generic SELECT statements that programmatically produce result sets of records to be output for viewing in a number of ways. However, in certain instances, a SELECT statement may not produce any records in the query based on the SQL criteria provided. To avoid having a program act upon an empty result, the system variable _TALLY can be evaluated immediately after a query has been executed in order to determine the number of records that have been selected. For more information about _TALLY, see the code example below. 
 MORE INFORMATIONThe following rudimentary example illustrates the usage of the _TALLY system variable: 
 Additional reference words: VFoxWin 3.00  FoxMac FoxDos FoxWin 2.00 2.50
2.50a 2.50b 2.60
null
blank
KBCategory:
KBSubcategory: FxprgSql
 
 | 
| 
 Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use.  |