kenneth2k1 Posted August 6, 2003 Posted August 6, 2003 Hey: Ok, here's the setup: 2 files - Agents and Clients, related. An agent can have many clients assigned to him. I needed a report that shows a count of how many client records an agent has created. I also needed these stats for the week and month. So I set up some calc fields that return 1 or 0 if the rec was created in the last week and month. Then I find records for each agent and set fields in the agent file with the total numbers. In order to hit all the agents, I have to loop through all the agents with this process. It works, but the whole process seems more difficult than it should be. Does anybody have a better (maybe conventional) way of doing this? I'm sure this is a typical problem and should have a typical solution. If you need more info, let me know. Thanks Ken
-Queue- Posted August 6, 2003 Posted August 6, 2003 What about using something like client id & " " & WeekOfYear(dateCreated) & " " Year(dateCreated) and client id & " " & Month(dateCreated) & " " & Year(dateCreated) as your calc fields and match a global or dynamic calculation to them for your relationships?
kenneth2k1 Posted August 6, 2003 Author Posted August 6, 2003 Alright. Thanks for the suggestion. I'll give it a try. So I'll create a relationship based on this calc? Thanks Ken
-Queue- Posted August 6, 2003 Posted August 6, 2003 I would use these as the right hand side of the relationship and two globals or dynamic calcs for the left side. Then either some form of GTRR's with a set field or GetSummary by these relationships should be workable. I'm not quite sure if you're wanting an automatic calculation or if you want to make the results static.
Recommended Posts
This topic is 7779 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 accountSign in
Already have an account? Sign in here.
Sign In Now