Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4275 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have an application called "MEMBERSHIP":

 

It has these fields:

PKMEMID

MemberLast

MemberFirst

Mem_Can   (Holds "Member" or "Candidate" as appropriate)

ActiveInactive  (Holds "Active" or "Inactive" depending on the member status.

 

I want to create Membership::gcMemberActiveSummary that is Global , caluclated field that holds the COUNT of  (Mem_Can="Member" and ActiveInactive="Active")

 

I have tried:

 

gcMEMBERActiveSummary=count(Evaluate(ActiveInactive="Active" and Mem_Can="Member"))

 

I suspect I have to create a layout, add the necessary fields.... filter the necessary fields and and then script a 'count' of the displayed fields then set the global field to that value?????  Or, does FM have an easier way?

 

 

Posted

I think I would skip the relationships and use ExecuteSQL() as:

 

ExecuteSQL (
"SELECT COUNT (*)
FROM membership
WHERE MemCan = 'Member' and ActiveInactive = 'Active'" ;
"" ; "" 
)

This topic is 4275 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.