Link to home
Create AccountLog in
Avatar of jimmylew52
jimmylew52Flag for United States of America

asked on

Count rows in Visual Fox Pro 9 table

I need to know haow many rows of data are in a table in a Foxpro 9 database table.

I found this on the Microsoft site but it returns an error saying "command contains unrecognized Phrase/Keyword".

USE transaction_2012

CLEAR
COUNT FOR (Rerort_YR) = '*'

Database name is test
Table name is transaction_2012
field name in table 2012 is Report_yr

Thanks in advance for the help
ASKER CERTIFIED SOLUTION
Avatar of Olaf Doschke
Olaf Doschke
Flag of Germany image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of jimmylew52

ASKER

Thank You.
I am just curious what was wrong with
COUNT FOR (Rerort_YR) = '*'

because it is syntacticaly correct statement (only the field name is wrong) and the result is stored into _TALLY variable.

COUNT and RECCOUNT() may differ if the table contains deleted records.