Is their a way to count records of a populated field only and not the blanks that are in the same field. Tried using the count function along with the isblank and isnotblank but can't seem to get it to work.
Is their a way to count records of a populated field only and not the blanks that are in the same field. Tried using the count function along with the isblank and isnotblank but can't seem to get it to work.
Hi Phil,
This is one of those times that it's helpful to post the code that isn't working as expected.
Gregg
Hi Gregg,
2 of the fields in the app are a proposal number field and an invoice number field. The invoice number field contains some blank records as not all of the proposals are accepted. The code I am using for the invoice field is --- if(isnotblank("Invnbr"),count(acpt->invnbr,grp->Estmtr,grp->Detail),0). Am getting 0 count for invoice field.
Phil
Gregg disregard my last will get back to you later have to leave for a bit
Is this something you want to do?
Alpha Anywhere v3.5
Version 12.3, Build 2999
MySql56 & DBF's
Alpha 4, 5, Anywhere
Ron Anusiewicz
Phil,
from the helps... in discussion of Count()...
This function is a report writer function, not intended for table level field rules or other expressions. While the function may perform in some areas outside of the report writer, its use there is not supported
Phil,
I've extended Ron's good example.
-- tom
Tom and Ron
Thanks for your input. I'm working on it will let you know outcome. Thanks again.
Phil
If you add a session variable and place it on the form you can omit the button and use the OnFetch event to update the non-blank count
dim shared nrecs as N
nrecs = a5_get_records_in_query("authors", "nationality <> /"/" ")
vnrecs.refresh()
(replace the forward slash with a backslash or use singe quotes)
Robin
Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford
Bookmarks