Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Re: Count
Miscellaneous
Thread ID:
00100340
Message ID:
00100342
Views:
28
>How can I count the results of a qry based on a condition.
>
>Such as count(qry.sex) for qry.sex = 'female' , if I put this in an expression it is a syntax error?

I assume you mean a SQL query. The following would work:
SELECT *;
  FROM Qry;
  WHERE Sex = 'female';
  INTO CURSOR foo
lncount = _TALLY
If not a query:
COUNT FOR Qry.Sex = 'female' TO lncount
hth,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform