Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count of records when record = criteria
Message
De
14/06/1997 17:05:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00036099
Message ID:
00036398
Vues:
51
> After I posted my last message, I tried changing the OR to an AND but it > didn't appear to work. In my test table all records had an S or an F except > for one. It was blank. So I tried: IIF(ALLTRIM(famsingl)!="F" AND > ALLTRIM(famsingl)!="S" ; > OR ISBLANK(famsingl),1,0) AS fblank > This appears to work. But now I wonder why I needed to add the ISBLANK, > shouldn't the expression not equal to F and not equal to S include the > blank record? why just not add a report field with a value Iif(inlist(famsingl),"F","S"),0,1) and calculate its sum in the report? If it has to be just one letter F or S, I assume there may be more letters beyond, so we may add a space: Iif(inlist(famsingl),"F ","S "),0,1) This way you need no additional fields in the select statement.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform