jimmylew52
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
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.
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.
ASKER